-
Notifications
You must be signed in to change notification settings - Fork 493
add better parameter validation for KIFEst #116
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
Conversation
yogeshg
commented
Apr 11, 2018
- check if un-tunable parameters need to be defined
- check if tunable parameters need to be defined or specified in param map (this check against all those given to fitMultiple)
- add test to see if method works correctly
Codecov Report
@@ Coverage Diff @@
## master #116 +/- ##
==========================================
+ Coverage 83.45% 83.76% +0.31%
==========================================
Files 34 34
Lines 1994 1989 -5
Branches 44 44
==========================================
+ Hits 1664 1666 +2
+ Misses 330 323 -7
Continue to review full report at Codecov.
|
| shutil.rmtree(self.temp_dir, ignore_errors=True) | ||
|
|
||
| def test_validate_params(self): | ||
| """Test that `KerasImageFileEstimator._validateParams` method works as expected""" |
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.
we probably could be more thorough in making sure all the intersect/diff logic works but I think it's good enough.
sueann
left a comment
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.
lgtm. just a small comment
| raise ValueError("Output column must be defined") | ||
| if self.inputCol in paramMap: | ||
| raise ValueError("Input column can not be fine tuned") | ||
| model_params = [self.kerasOptimizer, self.kerasLoss, self.kerasFitParams] |
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.
merge model_params and output_params into tunable_params for clarity
|
Offline review with @smurching , add error for untunable param. raised raised #117 in case this becomes a blocker and we are good with merging as is. |