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

Tutorial for Tuner Subclassing #136

Merged
merged 8 commits into from
Oct 28, 2019
Merged

Tutorial for Tuner Subclassing #136

merged 8 commits into from
Oct 28, 2019

Conversation

omalleyt12
Copy link
Contributor

No description provided.

@omalleyt12 omalleyt12 closed this Oct 28, 2019
@omalleyt12 omalleyt12 reopened this Oct 28, 2019
@omalleyt12 omalleyt12 closed this Oct 28, 2019
@omalleyt12 omalleyt12 reopened this Oct 28, 2019
Copy link
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

self.on_epoch_begin(trial, model, epoch, logs={})
for batch, data in enumerate(train_ds):
self.on_batch_begin(trial, model, batch, logs={})
batch_loss = run_train_step(data).numpy()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a scalar so prefer doing float(run_train_step(data)) (more readable than .numpy(), and gives you a plain Python float).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

epoch_loss_metric.update_state(loss)
return loss

# `self.on_epoch_end` reports results to the `Oracle` and saves the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be specified in the text above ("Typically, Tuner.run_trial is the only method that users need to override when subclassing Tuner.") that run_trial should call self.on_epoch_end and optionally other callback methods such as on_epoch_begin, etc. The list of available methods, and which ones are optional or not, should be made explicit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


### Understanding the search process.

`Tuner.search` can be passed any arguments. These arguments will be passed directly to `Tuner.run_trial`, along with a `Trial` object that contains information about the current trial, including hyperparameters and the status of the trial. Typically, `Tuner.run_trial` is the only method that users need to override when subclassing `Tuner`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the detailed example below, I would recommend having a sketch of the code here, e.g.

class MyTuner(kt.Tuner):

    def run_trial(self, trial, ...):
        hp = trial.hyperparameters
        model = self.hypermodel.build(trial.hyperparameters)
        for epoch in range(10):
              epoch_loss = ...
              self.on_epoch_end(trial, model, epoch, logs={'loss': epoch_loss})

Otherwise it's hard to parse what's essential and what's not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


### Example

```python
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a complex example. We should consider using a format that enables us to make the example directly runnable in Colab in one click, and easily testable in an automatically generated integration test.

For instance, examples on tensorflow.org are typically shipped as runnable notebooks. The notebooks are used to generated a HTML webpage (it goes through markdown first), can be launched in Colab, and are run as part of integration tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to do the equivalent on GH? I couldn't find anything from googling around a bit

I ran this example on my computer locally to make sure it worked, is that ok for now?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no ready-made solution that I'm aware of, we'd have to roll out our own (and make it shared cross all of our repos). We'll do this eventually, but we can't block tutorials based on this, so let's ship the tutorial as is for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, made a tracking bug here: keras-team/keras-autodoc#35

@omalleyt12
Copy link
Contributor Author

Thanks for the review!

@omalleyt12 omalleyt12 merged commit 1bd2070 into keras-team:master Oct 28, 2019
omalleyt12 added a commit that referenced this pull request Oct 29, 2019
* New oracle contract

* Most of Oracle / Tuner / MetricsTracker interop

* Simple example working

* RandomSearch working

* Hyperband working

* Removed unecessary files

* Small cleanups

* Bayesian working

* End-to-end test working

* Working on saving

* Fixes #71 - Erroneously calling HTML(HTML(table))

We were erroneously calling HTML() twice inside ipython notebooks, and also not
actually displaying the results.  Fixes both issues.

Verified locally in a Jupyter notebook - plugins for doing so automatically
via pytest are woefully lacking.

* Host and display changes

* Metrics tests working

* Tuner correctness tests passing

* Tuner workflows test

* Oracle saving / reloading

* Stateful base class

* Save on trial end

* Hyperband working

* Flake8 fixes

* Remove redundant methods

* Use np nan methods

* Make max_trials optional

* Add back support for executions_per_trial

* Add ability to merge HP objects

* Wording change

* fixed metrics tracker's update function bug

* Remove frozen, add arg to _retrieve

* Remove unnecessary line

* Executions on Oracle

* Rename to step

* Tests passing except trials length tests

* Obey flake8

* Add MultiExecutionTuner

* Updating Tuners and Oracle docstrings

* Flake8 fixes, remove unusued

* Tests passing

* Oracle docstrings

* Trial style fix

* Doc fixes

* Moved MultiExecutionTuner to engine/

* Save only last 10 checkpoints

* Add test framework for mocking distribution

* Add requirement

* Updating Travis CI config

* HyperParameter Protos

* Use oneof for Choice

* All tests added

* Add generated file

* Config changes

* Switched to use threading

* Fix default type for Int

* Only share ModelCheckpoint across executions, not other callbacks

* Use double instead of float

* PB2 cleanup

* BaseTuner tested

* Add support for multi-valued MetricObservations

* Cleanup

* Prefer to infer the metric direction from Oracle objective

* Add Trial protos

* Simplify class names

* Add Trial and metrics protos

* Add Trial to_proto from_proto

* Removed Direction

* Changes to BaseTuner

* Add simple sklearn tuner test

* Move first build to base tuner to populate space

* Enabled the check on unused imports.

* Put back unused local.

* Added sections to the contributing guide.

* Removed blank lines at the end of files.

Removed the __init__.py in the tests directory
as they're not used.

* Removed all unused variables and enabled check.

* Put back the files.

* Restore metrics in set_state

* Update trial.py

* Fixed flake8 errors.

* MetricObservation value is always a list

* Fix flake8

* Added rules for trailing whitespaces and lowercase variables. (#101)

* Adds OracleServicer GPRC class and implements GetSpace, UpdateSpace, and CreateTrial (#100)

* Oracle Service protos and GetSpace implemented

* Implement update space

* Implement CreateTrial

* Update gitignore for grpc files

* Test changes

* Flake8 fixes

* Change name to oracle_chief

* Fix race condition in test

* Implement the rest of the GRPC methods and add an OracleClient (#102)

* Oracle Service protos and GetSpace implemented

* Implement update space

* Implement CreateTrial

* Update gitignore for grpc files

* Test changes

* Flake8 fixes

* Create OracleClient

* Add UpdateTrial

* Add GetBestTrials

* wait_for_ready in update_space

* Cleanup

* All grpc methods implemented

* Remove all usages of private TensorFlow APIs (#103)

* Removed all private uses of TF

* Fix flake8

* Remove unused abstractions tests

* Change name

* Add documentation (#105)

* Added the docs, it works. There are no tests.

* Added some tests.

* Keras-autodoc was moved to keras-team. (#108)

* Enabled other flake8 rules. (#109)

* Save trials in Oracle, and have Oracle and Tuner reload on start by default (#106)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Make HyperParameters Proto more useable for generic use cases (#107)

* Update protobufs

* More generic proto format

* Fix Bayesian oracle issues (#111)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Style fixes

* Add dict methods to HyperParameters (#110)

* Update protobufs

* More generic proto format

* Add __getitem__ and __contains__

* Removed default in get

* Simplify get

* Support Distributed Tuning (#112)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix MultiExecutionTuner to not copy hyperparameters in order for update_space to work (#113)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add test for subclass Model loading (#114)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband fixes (#115)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* set_state() should require `state` as arg (#118)

* Make max_value inclusive (#116)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Make max_value inclusive

* Test fixes

* Added note for inclusivity

* Raise error if objective direction can not be inferred (#117)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Add error on objective direction not inferred

* Test fixes

* Add weighted_ and ce, crossentropy special cases

* Fix string formatting

* Sklearn Tuner (#119)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Added CV Sklearn Tuner

* First version running

* Sklearn tuner tests

* Fix example

* Made sure that example runs

* Change cross_validation to cv and set random state for split

* Add search docstring

* Updated the keras_autodoc version. (#125)

* Improve Keras Tuner Documentation (#124)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Added CV Sklearn Tuner

* First version running

* Sklearn tuner tests

* Fix example

* Made sure that example runs

* Change cross_validation to cv and set random state for split

* Add search docstring

* Documentation improvements

* Adding docstrings for Tuner methods

* More docs

* Docstrings added

* Update docs location

* Add autogen

* Added autogen

* Move back to kerastuner_docs

* Move back to docs/

* Set OracleChief num threads to 1 (#126)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Added CV Sklearn Tuner

* First version running

* Sklearn tuner tests

* Fix example

* Made sure that example runs

* Change cross_validation to cv and set random state for split

* Add search docstring

* Documentation improvements

* Adding docstrings for Tuner methods

* More docs

* Docstrings added

* Update docs location

* Add autogen

* Added autogen

* Move back to kerastuner_docs

* Move back to docs/

* Make chief Oracle serial

* Remove conditional params from HyperResnet (#127)

* Distributed Tuning Tutorial (#129)

* Distributed tuning tutorial

* Cleanup

* Update gitignore

* Cleanups

* Updates

* Add get_best_hyperparameters method (#130)

* Add get_best_hyperparameters method

* Update docs

* Cleanup

* Improve BayesianOptimization Oracle (#131)

* Working on correctness tests

* Added correctness tests

* Increase test feature coverage

* Cleanup

* Update docstring

* Standardize Tuner subclassing (#133)

* Standardize Tuner subclassing

* Fix callbacks

* Cleanup

* Change name and allow subclassing without wrapping

* Call super

* Bump keras autodoc version, with aliases now! (#135)

* Bump keras-autodoc to v0.3.0.

* Used aliases.

* Fix flaky test.

* Support tunable=False for HyperModels (#134)

* Support tunable False for HyperModels

* Update resnet

* Update

* Update

* Reduce flakiness (#137)

* Tutorial for Tuner Subclassing (#136)

* Tutorial

* Finish tutorial

* Expand comment

* Update README.md

* Explanation of run_trial

* Float

* Update site

* Deployed 015a782 with MkDocs version: 1.0.4

* Deployed 7b26a3b with MkDocs version: 1.0.4

* Change theme colors

* Deployed 11cfcfc with MkDocs version: 1.0.4
omalleyt12 added a commit that referenced this pull request Nov 1, 2019
* New oracle contract

* Most of Oracle / Tuner / MetricsTracker interop

* Simple example working

* RandomSearch working

* Hyperband working

* Removed unecessary files

* Small cleanups

* Bayesian working

* End-to-end test working

* Working on saving

* Fixes #71 - Erroneously calling HTML(HTML(table))

We were erroneously calling HTML() twice inside ipython notebooks, and also not
actually displaying the results.  Fixes both issues.

Verified locally in a Jupyter notebook - plugins for doing so automatically
via pytest are woefully lacking.

* Host and display changes

* Metrics tests working

* Tuner correctness tests passing

* Tuner workflows test

* Oracle saving / reloading

* Stateful base class

* Save on trial end

* Hyperband working

* Flake8 fixes

* Remove redundant methods

* Use np nan methods

* Make max_trials optional

* Add back support for executions_per_trial

* Add ability to merge HP objects

* Wording change

* fixed metrics tracker's update function bug

* Remove frozen, add arg to _retrieve

* Remove unnecessary line

* Executions on Oracle

* Rename to step

* Tests passing except trials length tests

* Obey flake8

* Add MultiExecutionTuner

* Updating Tuners and Oracle docstrings

* Flake8 fixes, remove unusued

* Tests passing

* Oracle docstrings

* Trial style fix

* Doc fixes

* Moved MultiExecutionTuner to engine/

* Save only last 10 checkpoints

* Add test framework for mocking distribution

* Add requirement

* Updating Travis CI config

* HyperParameter Protos

* Use oneof for Choice

* All tests added

* Add generated file

* Config changes

* Switched to use threading

* Fix default type for Int

* Only share ModelCheckpoint across executions, not other callbacks

* Use double instead of float

* PB2 cleanup

* BaseTuner tested

* Add support for multi-valued MetricObservations

* Cleanup

* Prefer to infer the metric direction from Oracle objective

* Add Trial protos

* Simplify class names

* Add Trial and metrics protos

* Add Trial to_proto from_proto

* Removed Direction

* Changes to BaseTuner

* Add simple sklearn tuner test

* Move first build to base tuner to populate space

* Enabled the check on unused imports.

* Put back unused local.

* Added sections to the contributing guide.

* Removed blank lines at the end of files.

Removed the __init__.py in the tests directory
as they're not used.

* Removed all unused variables and enabled check.

* Put back the files.

* Restore metrics in set_state

* Update trial.py

* Fixed flake8 errors.

* MetricObservation value is always a list

* Fix flake8

* Added rules for trailing whitespaces and lowercase variables. (#101)

* Adds OracleServicer GPRC class and implements GetSpace, UpdateSpace, and CreateTrial (#100)

* Oracle Service protos and GetSpace implemented

* Implement update space

* Implement CreateTrial

* Update gitignore for grpc files

* Test changes

* Flake8 fixes

* Change name to oracle_chief

* Fix race condition in test

* Implement the rest of the GRPC methods and add an OracleClient (#102)

* Oracle Service protos and GetSpace implemented

* Implement update space

* Implement CreateTrial

* Update gitignore for grpc files

* Test changes

* Flake8 fixes

* Create OracleClient

* Add UpdateTrial

* Add GetBestTrials

* wait_for_ready in update_space

* Cleanup

* All grpc methods implemented

* Remove all usages of private TensorFlow APIs (#103)

* Removed all private uses of TF

* Fix flake8

* Remove unused abstractions tests

* Change name

* Add documentation (#105)

* Added the docs, it works. There are no tests.

* Added some tests.

* Keras-autodoc was moved to keras-team. (#108)

* Enabled other flake8 rules. (#109)

* Save trials in Oracle, and have Oracle and Tuner reload on start by default (#106)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Make HyperParameters Proto more useable for generic use cases (#107)

* Update protobufs

* More generic proto format

* Fix Bayesian oracle issues (#111)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Style fixes

* Add dict methods to HyperParameters (#110)

* Update protobufs

* More generic proto format

* Add __getitem__ and __contains__

* Removed default in get

* Simplify get

* Support Distributed Tuning (#112)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix MultiExecutionTuner to not copy hyperparameters in order for update_space to work (#113)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add test for subclass Model loading (#114)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband fixes (#115)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* set_state() should require `state` as arg (#118)

* Make max_value inclusive (#116)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Make max_value inclusive

* Test fixes

* Added note for inclusivity

* Raise error if objective direction can not be inferred (#117)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Add error on objective direction not inferred

* Test fixes

* Add weighted_ and ce, crossentropy special cases

* Fix string formatting

* Sklearn Tuner (#119)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Added CV Sklearn Tuner

* First version running

* Sklearn tuner tests

* Fix example

* Made sure that example runs

* Change cross_validation to cv and set random state for split

* Add search docstring

* Updated the keras_autodoc version. (#125)

* Improve Keras Tuner Documentation (#124)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Added CV Sklearn Tuner

* First version running

* Sklearn tuner tests

* Fix example

* Made sure that example runs

* Change cross_validation to cv and set random state for split

* Add search docstring

* Documentation improvements

* Adding docstrings for Tuner methods

* More docs

* Docstrings added

* Update docs location

* Add autogen

* Added autogen

* Move back to kerastuner_docs

* Move back to docs/

* Set OracleChief num threads to 1 (#126)

* Removed all private uses of TF

* Save trials from Oracle. Reload Oracle if file exists.

* Fix flake8

* Remove unused abstractions tests

* Fix reloading

* Change name

* cleanup

* Fixes for Bayesian Tuner

* Cleanup

* Cleanup

* Cleanup

* Fix tests

* Fix Hyperband save

* Changed to load_existing

* Change to overwrite

* Save

* Cleanup

* Add step test

* Cleanup

* Cleanup

* Fix test

* Working on full distribution

* Working test

* Add BaseTuner test

* Add sanity check

* Fix updating space in on_trial_end for MultiExecutionTuner

* Fix test

* Comment

* Add predict

* Add correctness test

* Hyperband refactor

* Parellel rounds and brackets

* Cleanup

* Add return

* Brackets populating correctly

* Working version

* API changes

* Improve docstring

* Improve docstring

* Added CV Sklearn Tuner

* First version running

* Sklearn tuner tests

* Fix example

* Made sure that example runs

* Change cross_validation to cv and set random state for split

* Add search docstring

* Documentation improvements

* Adding docstrings for Tuner methods

* More docs

* Docstrings added

* Update docs location

* Add autogen

* Added autogen

* Move back to kerastuner_docs

* Move back to docs/

* Make chief Oracle serial

* Remove conditional params from HyperResnet (#127)

* Distributed Tuning Tutorial (#129)

* Distributed tuning tutorial

* Cleanup

* Update gitignore

* Cleanups

* Updates

* Add get_best_hyperparameters method (#130)

* Add get_best_hyperparameters method

* Update docs

* Cleanup

* Improve BayesianOptimization Oracle (#131)

* Working on correctness tests

* Added correctness tests

* Increase test feature coverage

* Cleanup

* Update docstring

* Standardize Tuner subclassing (#133)

* Standardize Tuner subclassing

* Fix callbacks

* Cleanup

* Change name and allow subclassing without wrapping

* Call super

* Bump keras autodoc version, with aliases now! (#135)

* Bump keras-autodoc to v0.3.0.

* Used aliases.

* Fix flaky test.

* Support tunable=False for HyperModels (#134)

* Support tunable False for HyperModels

* Update resnet

* Update

* Update

* Reduce flakiness (#137)

* Tutorial for Tuner Subclassing (#136)

* Tutorial

* Finish tutorial

* Expand comment

* Update README.md

* Explanation of run_trial

* Float

* Update site

* Deployed 015a782 with MkDocs version: 1.0.4

* Deployed 7b26a3b with MkDocs version: 1.0.4

* Change theme colors

* Deployed 11cfcfc with MkDocs version: 1.0.4

* Deployed 1609b55 with MkDocs version: 1.0.4

* Deployed 4e48da1 with MkDocs version: 1.0.4

* Deployed 4e48da1 with MkDocs version: 1.0.4

* Fix merge
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.

2 participants