-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor sample API #705
Refactor sample API #705
Conversation
1ee38c2
to
6ba338d
Compare
2749c29
to
247dce7
Compare
6ba338d
to
45fd128
Compare
Codecov Report
@@ Coverage Diff @@
## v0.14.0.dev #705 +/- ##
===============================================
+ Coverage 65.23% 65.86% +0.62%
===============================================
Files 36 36
Lines 2606 2651 +45
===============================================
+ Hits 1700 1746 +46
+ Misses 906 905 -1
Continue to review full report at Codecov.
|
247dce7
to
22bd94e
Compare
835890e
to
a2c2487
Compare
b222a86
to
c38c0b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far. I'm not sure if I should wait for the other PR's to be merged before looking at it again?
@@ -62,7 +62,7 @@ def test_column_after_date_simple(): | |||
|
|||
model = PAR(entity_columns=['col'], sequence_index='date', epochs=1) | |||
model.fit(data) | |||
sampled = model.sample() | |||
sampled = model.sample(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this work? Does one sample from PAR generate 2 rows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it has something to do with the number of sequences, and how PAR generates sequences after the usual sample process.
5cc63b3
to
a50c40f
Compare
a50c40f
to
4c79e0b
Compare
4c79e0b
to
e3bf2a9
Compare
e3bf2a9
to
bdec209
Compare
* Add method to sample remaining columns * update integration tests * add unit tests * update tutorials and docs * Enable batch sampling (#709) * Add batch sampling and progress bar * Make sure to close progress bar * Periodically write to file * add unit tests * cr comments * fix test
* Update sample method args * Add unit tests * remove conditioning logic for now * Add error handling * Make integration tests pass * code review comments * Add sample conditions method * add back unit tests with conditions * Update logic for handling multiple conditions * fix lint * fix integration tests * Add method to sample remaining columns (3/3) (#708) * Add method to sample remaining columns * update integration tests * add unit tests * update tutorials and docs * Enable batch sampling (#709) * Add batch sampling and progress bar * Make sure to close progress bar * Periodically write to file * add unit tests * cr comments * fix test
* Update sample method args * Add unit tests * remove conditioning logic for now * Add error handling * Make integration tests pass * code review comments * Add sample conditions method * add back unit tests with conditions * Update logic for handling multiple conditions * fix lint * fix integration tests * Add method to sample remaining columns (3/3) (#708) * Add method to sample remaining columns * update integration tests * add unit tests * update tutorials and docs * Enable batch sampling (#709) * Add batch sampling and progress bar * Make sure to close progress bar * Periodically write to file * add unit tests * cr comments * fix test
Resolves #690