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.

keras tuner lack of documentation for the Objective parameter values

See original GitHub issue

In the following example: tuner = kt.Hyperband(model, objective='val_accuracy', max_epochs=10, factor=3, directory='my_dir', project_name='intro_to_kt')

I can’t find the documentation for all the possible objective values, can anyone help?

I’ve searched in the official documentation and in stackOverflow, etc.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
haifeng-jincommented, Sep 5, 2021

The link is a complete list of metrics classes. It does not provide the string values. You can pass any of the class instances to your model. And set it as the objective.

objective("val_metric_name", direction="min")

Replace the “metric_name” with the name arg value in the metric class initializer.

We have a tutorial for this on the way.

0reactions
haifeng-jincommented, Sep 13, 2021

The string is always the snake case of the class name. For example, 'accuracy' is from Accuracy.

It seems there is no way to follow the update of the website. It will be released regularly. The tutorial is in the master branch of the website now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started with KerasTuner
KerasTuner is a general-purpose hyperparameter tuning library. ... As shown below, the hyperparameters are actual values.
Read more >
Objective value missing in metrics - Error arises while ... - GitHub
Setting the following as the objective argument of the tuner: kerastuner.Objective("val_layername_accuracy", direction="min") is a workaround to ...
Read more >
Keras Tuner: Lessons Learned From Tuning Hyperparameters ...
We'll focus one the 5 parameters that sharpen a model's architecture. This is where we'll employ Keras Tuner to do hyperparameter tuning.
Read more >
Introduction to the Keras Tuner | TensorFlow Core
The process of selecting the right set of hyperparameters for your machine learning (ML) application is called hyperparameter tuning or hypertuning.
Read more >
Hyperparameter tuning with keras-tuner full tutorial - Haneul Kim
Parameter : values that are learned by the model and cannot be tuned by Data Scientists. Includes mean, variance of data, weights, bias,...
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