ConfigSpace
-
struct ConfigSpace
Subclassed by kernel_launcher::KernelBuilder
Public Functions
-
template<typename T = Value, typename P = double>
inline ParamExpr tune(std::string name, std::vector<T> values, std::vector<P> priors, Value default_value) Add a new parameter to the configuration space.
- Parameters:
name – The name of the parameter.
values – The values of this parameter.
priors – The prior probabilities of the given values.
default_value – The default value that will be return by
ConfigSpace::default_config()
.
-
template<typename T = Value, typename P = double>
inline ParamExpr tune(std::string name, std::vector<T> values, std::vector<P> priors) Add a new parameter to the configuration space. The default value is assume to be the first value in the list.
- Parameters:
name – The name of the parameter.
values – The values of this parameter.
priors – The prior probabilities of the given values.
-
template<typename T = Value>
inline ParamExpr tune(std::string name, std::vector<T> values, Value default_value) Add a new parameter to the configuration space.
- Parameters:
name – The name of the parameter.
values – The values of this parameter.
default_value – The default value that will be return by
ConfigSpace::default_config()
.
-
template<typename T = Value>
inline ParamExpr tune(std::string name, std::vector<T> values) Add a new parameter to the configuration space. The default value is assume to be the first value in the list.
- Parameters:
name – The name of the parameter.
values – The values of this parameter.
-
inline ParamExpr operator[](const std::string &name) const
Returns the parameter expression with the given name.
-
inline const std::vector<TunableParam> ¶meters() const
Returns the parameters of this configuration space.
-
void restriction(TypedExpr<bool> e)
Add a restriction to this configuration space. A configuration is only considered valid if this expression yields
true
.
-
bool is_valid(const Eval &config) const
Check if the given configuration is a valid member of this configuration space. This method essentially checks three things:
Does the configuration contain the correct parameters.
Do these parameter contain valid values.
Does the configuration meet the restrictions.
-
template<typename T = Value, typename P = double>