Skip to content
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

Add ModelError as else case to lr_normalizer() #292

Closed
wants to merge 5 commits into from

Conversation

emogden
Copy link

@emogden emogden commented Apr 11, 2019

  • make sure that all tests are passed - done
  • create some unit tests and update testing procedures accordingly - done
  • make PR to dev (or daily-dev) - done

After adding Talos to my Tensorflow+Keras model, I found that the learning rate normalizer only recognizes objects from 'keras.optimizers' and was failing silently. Rather than making structural/dependency changes to accommodate Tensorflow, I figured it should at least have an 'else' case with an error to indicate the function cannot operate on the provided optimizer.

Also added test function to make sure this error gets triggered with a string.

My first PR, so let me know if this is prepared incorrectly.

@pep8speaks
Copy link

pep8speaks commented Apr 11, 2019

Hello @emogden! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-08-26 20:41:50 UTC

@coveralls
Copy link

coveralls commented Apr 11, 2019

Pull Request Test Coverage Report for Build 471

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.4%) to 90.072%

Files with Coverage Reduction New Missed Lines %
talos/reducers/permutation_filter.py 5 66.67%
Totals Coverage Status
Change from base Build 450: -0.4%
Covered Lines: 1125
Relevant Lines: 1249

💛 - Coveralls

@mikkokotila
Copy link
Contributor

Nice, thanks :) Later this week there will be the final changes to v.0.6.2 and given this is already passing, I don't see why it would not pass then. Will merge at that point.

thanks again!

mikkokotila added a commit that referenced this pull request Aug 27, 2019
- Implements a custom error if a non-supported optimizer is used with with lr_normalizer #292
- Fixed docs typo #379
mikkokotila added a commit that referenced this pull request Sep 3, 2019
* Fix the required parameters discrepancy

* Fix hidden_layers complexity

* Make @pep8speaks stop crying

* Handles PRs #292 and #379

- Implements a custom error if a non-supported optimizer is used with with lr_normalizer #292
- Fixed docs typo #379

* Updated PR template
mikkokotila added a commit that referenced this pull request Sep 14, 2019
* Fix the required parameters discrepancy

* Fix hidden_layers complexity

* Make @pep8speaks stop crying

* fixed a tiny typo

The docs for `Analyze` said `plot_bars` for `plot_kde` as well.

* Handles PRs #292 and #379

- Implements a custom error if a non-supported optimizer is used with with lr_normalizer #292
- Fixed docs typo #379

* Updated PR template

* enabled resample_params in AutoParams

It's now possible to set the number of `resample_params` in AutoParams. Also fixed typical example docs.

* updated docs and PULL_REQUEST_TEMPLATE

* change version to docs
@mikkokotila
Copy link
Contributor

Thanks for this :) The issue has been handled now in other commits, so closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants