lenskit.schemas.tuning.SearchParam#

class lenskit.schemas.tuning.SearchParam#

Bases: pydantic.BaseModel

type: Literal['int', 'float', 'bool', 'choice']#

The type of this parameter.

min: int | float | None = None#

Minimum parameter value.

max: int | float | None = None#

Maximum parameter value.

scale: Literal['uniform', 'log', 'pow2'] = 'uniform'#

Search scale for parameter values.

The value "pow2" only applies to integer parameters, and constrains them to be integer powers of 2.

choices: list[str | int | float | bool] = []#

Choices for a "choice" search parameter.

base: float | None = None#

Base for logarithmic search scales.