question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatic Hyperparameter Tuning in TFX

See original GitHub issue

Per @zhitaoli’s suggestion a few days ago here, I am opening this up as a new thread.

I am wondering what is the best way to search for a model’s optimal hyperparameters within TFX.

It sounds like it may be possible to use the Trainer’s executor_class and specify an AI Platform Executor and even pass the additional arguments it needs for it to do hyperparameter tuning, but from Zhitao’s answer it sounds like receiving the responses may not be set up yet.

Anyway, I’m curious to hear what the roadmap to hyperparameter tuning within TFX looks like, and if there’s anything I can do to contribute to that effort.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
zhitaolicommented, Jan 27, 2020

@andrewlarimer Some update: @1025KB has provided a custom component ‘tuner’ in upcoming release of TFX. Please see this example on how to use it.

For people who are interested, please feel free to try it out and provide some feedback.

Thanks.

3reactions
zhitaolicommented, Aug 8, 2019

Sorry for the long delay as we have a couple of discussions with various teams (Google Cloud AI Platform, TFX internal, Keras, etc).

My current thought process on this one:

  1. Given that Tensorflow is moving towards TF 2.0 and Keras, we hope to utilize this window to find a unified programming interface for hyper-parameter related business. The new keras-tuner project seems to provide a good starting point;
  2. Once we agree on API to modeling work, different tuner implementations integrated with our pipeline system will be developed by collaboration between TFX::OSS and Cloud AI Platform/Katib/Keras, to realize hyper-parameter tuning on all thees platforms.
  3. One important requirement is that the same model code and tuner component configuration should be portable as much as possible to different platform/environment. For instance, moving a locally loop-based tuner to GCP/Kubeflow should only require minimal new options which are only applicable to the specific environments.

@1025KB and I will publish more doc(s) and discussions in this thread as we make progress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automated hyper-parameter tuning
The automated tuning approach: A tuning algorithm can be used to find automatically the best hyper-parameter values. This approach gives often ...
Read more >
TFX Tuner 1 - Selecting the best hyperparameters - YouTube
This video explains how to tune hyperparameters of a deep learning model using Kubeflow pipelines and TFX. # TFX #Kubeflow #GCP #Github: ...
Read more >
Automatic Hyperparameter Optimization With Keras Tuner
Learn how to utilize the search algorithms of Keras Tuner to automatically get the best hyperparameters for Tensorflow models.
Read more >
10 Hyperparameter tuning - Deep Learning Patterns and ...
Initializing the weights in a model prior to warm-up training; Doing hyperparameter search manually and automatically; Constructing a learning rate ...
Read more >
Using hyperparameter tuning | AI Platform Training
The steps involved in hyperparameter tuning · Parse the command-line arguments representing the hyperparameters you want to tune, and use the values to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found