bigframes.bigquery.hparam_candidates#

bigframes.bigquery.hparam_candidates(candidates: Sequence[float | str]) Expression[source]#

Specifies the set of discrete values for the hyperparameter.

Examples:

>>> import bigframes.pandas as bpd
>>> import bigframes.bigquery as bbq
>>> # Specify a set of values for a hyperparameter.
>>> optimizer = bbq.hparam_candidates(['ADAGRAD', 'SGD', 'FTRL'])
Parameters:

candidates (Sequence[float | str]) – The set of discrete values for the hyperparameter.

Returns:

An expression that can be used in model options.

Return type:

bigframes.pandas.api.typing.Expression