nip.factory._ParameterSelector#
- class nip.factory._ParameterSelector[source]#
A data structure for storing and retrieving classes based on parameter values.
Methods Summary
__init__()add(cls[, filter])Add a class to the parameter selector.
select(hyper_params)Get a class from the parameter selector based on the parameters.
Attributes
filter_matchersMethods
- add(cls: type, filter: dict[str, str] = {})[source]#
Add a class to the parameter selector.
- Parameters:
- select(hyper_params: HyperParameters) type[source]#
Get a class from the parameter selector based on the parameters.
- Parameters:
hyper_params (HyperParameters) – The parameters of the experiment.
- Returns:
cls (type) – The class that matches the parameters.