Attend the Women in ML Symposium on December 7 Register now

tfdf.tuner.RandomSearch

Stay organized with collections Save and categorize content based on your preferences.

Tuner using random hyperparameter values.

Inherits From: Tuner

Used in the notebooks

Used in the tutorials

The candidate hyper-parameter can be evaluated independently and in parallel.

num_trials Number of random hyperparameter values to evaluate.

Methods

choice

View source

Adds a hyperparameter with a list of possible values.

Args
key Name of the hyper-parameter.
values List of possible value for the hyperparameter.
merge If false (default), raises an error if the hyper-parameter already exist. If true, adds values to the parameter if it already exist.

Returns
The conditional SearchSpace corresponding to the values in "values".

set_base_learner

View source

Sets the base learner key.

train_config

View source

YDF training configuration for the Hyperparameter optimizer.