Param_Discrete_Numeric#
- class obsidian.parameters.discrete.Param_Discrete_Numeric(name, categories: list[int | float], search_categories: list[int | float] | None = None)[source]#
 Bases:
Param_DiscreteRepresents an discrete numeric parameter; an ordinal parameter comprised of numbers.
- Raises:
 TypeError – If the categories are not numbers.
TypeError – If the categories are not a list of numbers.
- __init__(name, categories: list[int | float], search_categories: list[int | float] | None = None)[source]#
 
Methods
__init__(name, categories[, search_categories])decode(X)Decode parameter from transformed space
encode(X)Encode parameter to a format that can be used for training
load_state(obj_dict)Load the state of the Parameter object from a dictionary.
open_search()Set the search space to the parameter space
save_state()Save the state of the Parameter object.
set_search(search_categories)Set the search space for the parameter
unit_demap(X)unit_map(X)Attributes
Maximum parameter value
Minimum parameter value
ncNumber of discrete categories
The range of the parameter (max - min)
- decode(X)#
 Decode parameter from transformed space
- encode(X)#
 Encode parameter to a format that can be used for training
- property max#
 Maximum parameter value
- property min#
 Minimum parameter value
- property range#
 The range of the parameter (max - min)