Hparams with Estimators
See original GitHub issueSystem information
- TensorFlow and Tensorboard version (you are using): 2.1.0
- Are you willing to contribute it (Yes/No): Yes
Describe the feature and the current behavior/state.
Hparams cannot be used with estimators in tensorflow 2. There’s a KerasCallback
class that logs the hparams
when using Keras model.fit
, however this is not usable when using Estimator API.
There could be a feature in the form of a callback or hook that can be attached to estimators (with TrainSpec or EvalSpec) which will log hparams metrics against the hparams
for the current trial.
Who will benefit with this feature? Those who rely on Estimator API and tensorboard will benefit.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
How do I use hparams with estimators? - Stack Overflow
Simply calling hparams logs all metrics logged with tf.summary . Then in tensorboard, you can filter only the metrics you need and then...
Read more >Hyperparameter Tuning with the HParams Dashboard
The HParams dashboard in TensorBoard provides several tools to help with this process of identifying the best experiment or most promising sets ...
Read more >How To Use Hparams With Estimators - ADocLib
The search is performed using socalled Keras models via the TensorFlow tf. e would be used to find the best parameters for refitting...
Read more >Use HParams and YAML to Better Manage Hyperparameters ...
A HParams object holds hyperparameters used to build and train a model, ... If you are using Estimator API in Tensorflow 1.4, then...
Read more >model selection - Nested cross-validation: different hparams for ...
Suppose I have a dataset and two estimators, each with different hyperparameters. I want to select the best estimator and make sure it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The culprit seems to be
At the moment, I guess it’s not possible to do use
hparam_config(...)
with Estimator API. Here’s a workaround until it becomes compatible.Simply call hparams logs all metrics logged with
tf.summary
. Then in tensorflow, you can filter only the metrics you need and then compare trials.@jarednielsen yes, it automatically logged the metrics whichever I logged using summary. So if you didn’t have
summary.scalar
, you may not see anything.