-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix-1547-Bug-in-_partial_fit_and_predict_iterative-in-train_evaluator.py_ #1550
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
fix-1547-Bug-in-_partial_fit_and_predict_iterative-in-train_evaluator.py_ #1550
Conversation
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 really like how this PR cuts down bloat. I have left a few minor comments. Could you also please add a unit test?
I'm not really sure what to unit test here to be honest, could you be a bit more precise? |
After thinking more about what this PR fixes (making the indexing of pandas dataframes and numpy arrays consistent) we don't need a unit test right now to ensure this - we don't have unit tests for pandas and therefore haven't previously caught this error, and this PR simplifies how we access pandas and we can see from the changelog that it is a clear improvement that right now does not require testing. |
There are also unit tests failing wrt the changes (they are hidden among the other failiing unit tests, so you could maybe rebase on development where they are fixed?)? |
Codecov Report
@@ Coverage Diff @@
## development #1550 +/- ##
===============================================
+ Coverage 84.43% 84.66% +0.22%
===============================================
Files 157 157
Lines 11948 11976 +28
Branches 2063 2065 +2
===============================================
+ Hits 10088 10139 +51
+ Misses 1297 1286 -11
+ Partials 563 551 -12 |
1351dd2
to
9769082
Compare
9769082
to
4ab8dc6
Compare
Seems the meta learning timeouts have struck again ... I really don't know why, going to rerun the tests |
…train_evaluator.py_ (#1550)
….py_ (#1550) * Create PR * Fix issue with incorrect splits and data * Remove extraneous indexing * Fill in missing points of X_data to self._loss * Fix typevar * Fix X data passed in to loss * Fix indexing of X_fold for train evalutor * Fix cv-iterative-fit successive halving example
Fixes the below bug and also provides the
X_data
with every call toself._loss
, which was missing in some parts.