API-Documentation¶
-ConfigurationSpace¶
-
-
-
-class
ConfigSpace.configuration_space.
ConfigurationSpace
(name: Optional[str] = None, seed: Optional[int] = None, meta: Optional[Dict] = None)¶
+ - +class ConfigSpace.configuration_space.ConfigurationSpace(name: Optional[str] = None, seed: Optional[int] = None, meta: Optional[Dict] = None)¶
A collection-like object containing a set of hyperparameter definitions and conditions.
A configuration space organizes all hyperparameters and its conditions as well as its forbidden clauses. Configurations can be sampled from @@ -188,8 +189,8 @@
ConfigurationSpace -
- -
+add_condition
(condition: ConfigSpace.conditions.ConditionComponent) → ConfigSpace.conditions.ConditionComponent¶- +add_condition(condition: ConfigSpace.conditions.ConditionComponent) → ConfigSpace.conditions.ConditionComponent¶
Add a condition to the configuration space. Check if adding the condition is legal:
-
@@ -213,8 +214,8 @@
-
-
add_conditions
(conditions: List[ConfigSpace.conditions.ConditionComponent]) → List[ConfigSpace.conditions.ConditionComponent]¶
+ - +add_conditions(conditions: List[ConfigSpace.conditions.ConditionComponent]) → List[ConfigSpace.conditions.ConditionComponent]¶
Add a list of conditions to the configuration space. They must be legal. Take a look at
@@ -232,8 +233,8 @@add_condition()
.ConfigurationSpace -
- -
+add_configuration_space
(prefix: unicode, configuration_space: ConfigurationSpace, delimiter: unicode = ':', parent_hyperparameter: ConfigSpace.hyperparameters.Hyperparameter = None) → ConfigurationSpace¶- +add_configuration_space(prefix: unicode, configuration_space: ConfigurationSpace, delimiter: unicode = ':', parent_hyperparameter: ConfigSpace.hyperparameters.Hyperparameter = None) → ConfigurationSpace¶
Combine two configuration space by adding one the other configuration space. The contents of the configuration space, which should be added, are renamed to
@@ -258,8 +259,8 @@prefix
+delimiter
+ old_name.ConfigurationSpace -
- -
+add_forbidden_clause
(clause: ConfigSpace.forbidden.AbstractForbiddenComponent) → ConfigSpace.forbidden.AbstractForbiddenComponent¶- +add_forbidden_clause(clause: ConfigSpace.forbidden.AbstractForbiddenComponent) → ConfigSpace.forbidden.AbstractForbiddenComponent¶
Add a forbidden clause to the configuration space.
- Parameters @@ -275,8 +276,8 @@
-
-
add_forbidden_clauses
(clauses: List[ConfigSpace.forbidden.AbstractForbiddenComponent]) → List[ConfigSpace.forbidden.AbstractForbiddenComponent]¶
+ - +add_forbidden_clauses(clauses: List[ConfigSpace.forbidden.AbstractForbiddenComponent]) → List[ConfigSpace.forbidden.AbstractForbiddenComponent]¶
Add a list of forbidden clauses to the configuration space.
- Parameters @@ -292,8 +293,8 @@
-
-
add_hyperparameter
(hyperparameter: ConfigSpace.hyperparameters.Hyperparameter) → ConfigSpace.hyperparameters.Hyperparameter¶
+ - +add_hyperparameter(hyperparameter: ConfigSpace.hyperparameters.Hyperparameter) → ConfigSpace.hyperparameters.Hyperparameter¶
Add a hyperparameter to the configuration space.
- Parameters @@ -309,8 +310,8 @@
-
-
add_hyperparameters
(hyperparameters: List[ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.hyperparameters.Hyperparameter]¶
+ - +add_hyperparameters(hyperparameters: List[ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.hyperparameters.Hyperparameter]¶
Add hyperparameters to the configuration space.
- Parameters @@ -326,8 +327,8 @@
-
-
check_configuration
(configuration: ConfigSpace.configuration_space.Configuration) → None¶
+ - +check_configuration(configuration: ConfigSpace.configuration_space.Configuration) → None¶
Check if a configuration is legal. Raises an error if not.
- Parameters @@ -337,8 +338,8 @@
-
-
check_configuration_vector_representation
(vector: numpy.ndarray) → None¶
+ - +check_configuration_vector_representation(vector: numpy.ndarray) → None¶
Raise error if configuration in vector representation is not legal.
- Parameters @@ -348,8 +349,8 @@
-
-
generate_all_continuous_from_bounds
(bounds: List[List[Any]]) → None¶
+ - +generate_all_continuous_from_bounds(bounds: List[List[Any]]) → None¶
Generate
@@ -361,8 +362,8 @@UniformFloatHyperparameter
from a list containing lists with lower and upper bounds. The generated hyperparameters are added to the configuration space.ConfigurationSpace -
- -
+get_active_hyperparameters
(configuration: ConfigSpace.configuration_space.Configuration) → Set¶- +get_active_hyperparameters(configuration: ConfigSpace.configuration_space.Configuration) → Set¶
Return a set of active hyperparameter for a given configuration.
- Parameters @@ -378,8 +379,8 @@
-
-
get_all_conditional_hyperparameters
() → List[str]¶
+ - +get_all_conditional_hyperparameters() → List[str]¶
Return a list with names of all conditional hyperparameters.
- Returns @@ -392,8 +393,8 @@
-
-
get_all_unconditional_hyperparameters
() → List[str]¶
+ - +get_all_unconditional_hyperparameters() → List[str]¶
Return a list with names of unconditional hyperparameters.
- Returns @@ -406,8 +407,8 @@
-
-
get_child_conditions_of
(name: Union[str, ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.conditions.AbstractCondition]¶
+ - +get_child_conditions_of(name: Union[str, ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.conditions.AbstractCondition]¶
Return a list with conditions of all children of a given hyperparameter referenced by its
name
.-
@@ -424,8 +425,8 @@
-
-
get_children_of
(name: Union[str, ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.hyperparameters.Hyperparameter]¶
+ - +get_children_of(name: Union[str, ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.hyperparameters.Hyperparameter]¶
Return a list with all children of a given hyperparameter.
- Parameters @@ -441,8 +442,8 @@
-
-
get_conditions
() → List[ConfigSpace.conditions.AbstractCondition]¶
+ - +get_conditions() → List[ConfigSpace.conditions.AbstractCondition]¶
Return a list with all conditions from the configuration space.
- Returns @@ -455,8 +456,8 @@
-
-
get_default_configuration
() → ConfigSpace.configuration_space.Configuration¶
+ - +get_default_configuration() → ConfigSpace.configuration_space.Configuration¶
Return a configuration containing hyperparameters with default values.
- Returns @@ -469,8 +470,8 @@
-
-
get_forbiddens
() → List[ConfigSpace.forbidden.AbstractForbiddenComponent]¶
+ - +get_forbiddens() → List[ConfigSpace.forbidden.AbstractForbiddenComponent]¶
Return a list with all forbidden clauses from the configuration space.
- Returns @@ -483,8 +484,8 @@
-
-
get_hyperparameter
(name: unicode) → ConfigSpace.hyperparameters.Hyperparameter¶
+ - +get_hyperparameter(name: unicode) → ConfigSpace.hyperparameters.Hyperparameter¶
Gives the hyperparameter from the configuration space given its name.
- Parameters @@ -500,8 +501,8 @@
-
-
get_hyperparameter_by_idx
(idx: int) → unicode¶
+ - +get_hyperparameter_by_idx(idx: int) → unicode¶
Return the name of a hyperparameter from the configuration space given its id.
-
@@ -518,8 +519,8 @@
-
-
get_hyperparameter_names
() → List[str]¶
+ - +get_hyperparameter_names() → List[str]¶
Return a list with all names of hyperparameter, which are contained in the configuration space object.
-
@@ -533,8 +534,8 @@
-
-
get_hyperparameters
() → List[ConfigSpace.hyperparameters.Hyperparameter]¶
+ - +get_hyperparameters() → List[ConfigSpace.hyperparameters.Hyperparameter]¶
Return a list with all the hyperparameter, which are contained in the configuration space object.
-
@@ -549,8 +550,8 @@
-
-
get_hyperparameters_dict
() → Dict[str, ConfigSpace.hyperparameters.Hyperparameter]¶
+ - +get_hyperparameters_dict() → Dict[str, ConfigSpace.hyperparameters.Hyperparameter]¶
Return an OrderedDict with all the
(name, Hyperparameter)
contained in the configuration space object.-
@@ -564,8 +565,8 @@
-
-
get_idx_by_hyperparameter_name
(name: unicode) → int¶
+ - +get_idx_by_hyperparameter_name(name: unicode) → int¶
Return the id of a hyperparameter by its
name
.- Parameters @@ -581,8 +582,8 @@
-
-
get_parent_conditions_of
(name: Union[str, ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.conditions.AbstractCondition]¶
+ - +get_parent_conditions_of(name: Union[str, ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.conditions.AbstractCondition]¶
Return a list with conditions of all parents of a given hyperparameter.
- Parameters @@ -599,8 +600,8 @@
-
-
get_parents_of
(name: Union[str, ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.hyperparameters.Hyperparameter]¶
+ - +get_parents_of(name: Union[str, ConfigSpace.hyperparameters.Hyperparameter]) → List[ConfigSpace.hyperparameters.Hyperparameter]¶
Return the parent hyperparameters of a given hyperparameter.
- Parameters @@ -617,8 +618,8 @@
-
-
sample_configuration
(size: int = 1) → Union[ConfigSpace.configuration_space.Configuration, List[ConfigSpace.configuration_space.Configuration]]¶
+ - +sample_configuration(size: int = 1) → Union[ConfigSpace.configuration_space.Configuration, List[ConfigSpace.configuration_space.Configuration]]¶
Sample
size
configurations from the configuration space object.- Parameters @@ -635,8 +636,8 @@
-
-
seed
(seed: int) → None¶
+ - +seed(seed: int) → None¶
Set the random seed to a number.
- Parameters @@ -647,12 +648,12 @@
ConfigurationSpace +
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
-
-
ConfigurationSpace -
-
-
ConfigurationSpace -
-
-
ConfigurationSpace -
-
-
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
-
-
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
- -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
ConfigurationSpace -
- -
ConfigurationSpace -
- -
Configuration¶
-
-
-
-class
ConfigSpace.configuration_space.
Configuration
(configuration_space: ConfigSpace.configuration_space.ConfigurationSpace, values: Union[None, Dict[str, Union[str, float, int]]] = None, vector: Union[None, numpy.ndarray] = None, allow_inactive_with_values: bool = False, origin: Any = None, config_id: Optional[int] = None)¶
+ - +class ConfigSpace.configuration_space.Configuration(configuration_space: ConfigSpace.configuration_space.ConfigurationSpace, values: Union[None, Dict[str, Union[str, float, int]]] = None, vector: Union[None, numpy.ndarray] = None, allow_inactive_with_values: bool = False, origin: Any = None, config_id: Optional[int] = None)¶
Class for a single configuration.
The
Configuration
object holds for all active hyperparameters a value. While the @@ -683,8 +684,8 @@Configuration -
- -
+get
(item: unicode, default: Union[None, Any] = None) → Union[None, Any]¶- +get(item: unicode, default: Union[None, Any] = None) → Union[None, Any]¶
Return for a given hyperparameter name
item
the value of this hyperparameter.default
if the hyperparametername
doesn’t exist.-
@@ -704,8 +705,8 @@
-
-
get_array
() → numpy.ndarray¶
+ - +get_array() → numpy.ndarray¶
Return the internal vector representation of the
@@ -720,8 +721,8 @@Configuration
. All continuous values are scaled between zero and one.Configuration -
- -
+get_dictionary
() → Dict[str, Union[str, float, int]]¶- +get_dictionary() → Dict[str, Union[str, float, int]]¶
Return a representation of the
@@ -736,16 +737,16 @@Configuration
in dictionary form.Configuration -
- -
+is_valid_configuration
() → None¶- +is_valid_configuration() → None¶
Check if the object is a valid
Configuration
. Raise an error if configuration is not valid.- -
Configuration -
- -
Hyperparameters¶
ConfigSpace contains integer, float, categorical, as well as ordinal hyperparameters. Integer and float hyperparameter can be sampled from a uniform or normal distribution. Example usages are shown in the quickstart.
-3.1 Integer hyperparameters¶
-
-
-
-class
ConfigSpace.hyperparameters.
UniformIntegerHyperparameter
¶
+ - +class ConfigSpace.hyperparameters.UniformIntegerHyperparameter¶
An integer hyperparameter.
Its values are sampled from a uniform distribution with bounds
@@ -802,8 +803,8 @@lower
andupper
.3.1 Integer hyperparameters -
- -class
+ConfigSpace.hyperparameters.
NormalIntegerHyperparameter
¶- +class ConfigSpace.hyperparameters.NormalIntegerHyperparameter¶
An integer hyperparameter.
Its values are sampled from a normal distribution \(\mathcal{N}(\mu, \sigma^2)\).
@@ -835,12 +836,12 @@3.1 Integer hyperparameters +
- -class
3.2 Float hyperparameters¶
-3.3 Categorical hyperparameters¶
-
-
-
-class
ConfigSpace.hyperparameters.
CategoricalHyperparameter
¶
+ - +class ConfigSpace.hyperparameters.CategoricalHyperparameter¶
A categorical hyperparameter.
Its values are sampled from a set of
values
.None
is a forbidden value, please use a string constant instead and parse @@ -939,12 +940,12 @@3.2 Float hyperparameters
3.4 OrdinalHyperparameters¶
-
-
-
-class
ConfigSpace.hyperparameters.
OrdinalHyperparameter
¶
+ - +class ConfigSpace.hyperparameters.OrdinalHyperparameter¶
An ordinal hyperparameter.
Its values are sampled form a
@@ -973,12 +974,12 @@sequence
of values. The sequence of values from a ordinal hyperparameter is ordered.3.4 OrdinalHyperparameters +
3.5 Constant¶
-
-
-
-class
ConfigSpace.hyperparameters.
Constant
¶
+ - +class ConfigSpace.hyperparameters.Constant¶
Representing a constant hyperparameter in the configuration space.
By sampling from the configuration space each time only a single, constant
@@ -994,19 +995,19 @@value
will be drawn from this hyperparameter.3.4 OrdinalHyperparameters +
Conditions¶
ConfigSpace can realize equal, not equal, less than, greater than and in conditions. Conditions can be combined by using the conjunctions and and or. To see how to use conditions, please take a look at the user guide.
-4.1 EqualsCondition¶
4.2 NotEqualsCondition¶
4.3 LessThanCondition¶
4.4 GreaterThanCondition¶
-4.5 InCondition¶
4.6 AndConjunction¶
4.7 OrConjunction¶
Forbidden Clauses¶
ConfigSpace contains forbidden equal and forbidden in clauses. The ForbiddenEqualsClause and the ForbiddenInClause can forbid values to be @@ -1257,11 +1258,11 @@
4.7 OrConjunctionuser guide.
-
+
5.1 ForbiddenEqualsClause¶
-
-
+
+
5.2 ForbiddenInClause¶
+
5.3 ForbiddenAndConjunction¶
+
+
Serialization¶
ConfigSpace offers json, pcs and pcs_new writers/readers.
These classes can serialize and deserialize configuration spaces.
Serializing configuration spaces is useful to share configuration spaces across
experiments, or use them in other tools, for example, to analyze hyperparameter
importance with CAVE.
-
+
6.1 Serialization to JSON¶
--
-
ConfigSpace.read_and_write.json.
read
(jason_string)[source]¶
+-
+ConfigSpace.read_and_write.json.read(jason_string)[source]¶
Create a configuration space definition from a json string.
Example
>>> from ConfigSpace.read_and_write import json
@@ -1391,8 +1392,8 @@ 5.3 ForbiddenAndConjunction
--
-
ConfigSpace.read_and_write.json.
write
(configuration_space, indent=2)[source]¶
+-
+ConfigSpace.read_and_write.json.write(configuration_space, indent=2)[source]¶
Create a string representation of a
ConfigurationSpace
in json format.
This string can be written to file.
@@ -1426,8 +1427,8 @@ 5.3 ForbiddenAndConjunction
+
+
6.2 Serialization with pcs-new¶
Pcs is a simple, human-readable file format for the description of an
algorithm’s configurable parameters, their possible values, as well as any
@@ -1446,8 +1447,8 @@
5.3 ForbiddenAndConjunctionpcs
module.
--
-
ConfigSpace.read_and_write.pcs_new.
read
(pcs_string, debug=False)[source]¶
+-
+ConfigSpace.read_and_write.pcs_new.read(pcs_string, debug=False)[source]¶
Read in a ConfigurationSpace
definition from a pcs file.
Example
@@ -1473,8 +1474,8 @@ 5.3 ForbiddenAndConjunction
--
-
ConfigSpace.read_and_write.pcs_new.
write
(configuration_space)[source]¶
+-
+ConfigSpace.read_and_write.pcs_new.write(configuration_space)[source]¶
Create a string representation of a
ConfigurationSpace
in pcs_new format. This string can be written to file.
@@ -1504,12 +1505,12 @@ 5.3 ForbiddenAndConjunction
+
+
6.3 Serialization with pcs¶
--
-
ConfigSpace.read_and_write.pcs.
read
(pcs_string, debug=False)[source]¶
+-
+ConfigSpace.read_and_write.pcs.read(pcs_string, debug=False)[source]¶
Read in a ConfigurationSpace
definition from a pcs file.
Example
@@ -1535,8 +1536,8 @@ 5.3 ForbiddenAndConjunction
--
-
ConfigSpace.read_and_write.pcs.
write
(configuration_space)[source]¶
+-
+ConfigSpace.read_and_write.pcs.write(configuration_space)[source]¶
Create a string representation of a
ConfigurationSpace
in pcs format.
This string can be written to file.
@@ -1566,16 +1567,16 @@ 5.3 ForbiddenAndConjunction
+
+
+
Utils¶
Functions defined in the utils module can be helpful to
develop custom tools that create configurations from a given configuration
space or modify a given configuration space.
--
-
ConfigSpace.util.
deactivate_inactive_hyperparameters
()¶
+-
+ConfigSpace.util.deactivate_inactive_hyperparameters()¶
Remove inactive hyperparameters from a given configuration
--
-
ConfigSpace.util.
fix_types
()¶
+-
+ConfigSpace.util.fix_types()¶
Iterate over all hyperparameters in the ConfigSpace
and fix the types of the parameter values in configuration.
--
-
ConfigSpace.util.
generate_grid
()¶
+-
+ConfigSpace.util.generate_grid()¶
Generates a grid of Configurations for a given ConfigurationSpace.
Can be used, for example, for grid search.
--
-
ConfigSpace.util.
get_one_exchange_neighbourhood
()¶
+-
+ConfigSpace.util.get_one_exchange_neighbourhood()¶
Return all configurations in a one-exchange neighborhood.
The method is implemented as defined by:
Frank Hutter, Holger H. Hoos and Kevin Leyton-Brown
@@ -1685,8 +1686,8 @@
Utils
-
-
+
+
@@ -1765,7 +1766,7 @@ Utils
© Copyright 2014-2021, Matthias Feurer, Katharina Eggensperger, Syed Mohsin Ali, Christina Hernandez Wunsch, Julien-Charles Levesque, Jost Tobias Springenberg, Philipp Mueller, Marius Lindauer, Jorn Tuyls.
- Created using Sphinx 3.5.4.
+ Created using Sphinx 4.0.2.
5.1 ForbiddenEqualsClause¶
-5.2 ForbiddenInClause¶
5.3 ForbiddenAndConjunction¶
Serialization¶
ConfigSpace offers json, pcs and pcs_new writers/readers. These classes can serialize and deserialize configuration spaces. Serializing configuration spaces is useful to share configuration spaces across experiments, or use them in other tools, for example, to analyze hyperparameter importance with CAVE.
-6.1 Serialization to JSON¶
-
-
-
-
ConfigSpace.read_and_write.json.
read
(jason_string)[source]¶
+ - +ConfigSpace.read_and_write.json.read(jason_string)[source]¶
Create a configuration space definition from a json string.
Example
->>> from ConfigSpace.read_and_write import json @@ -1391,8 +1392,8 @@
5.3 ForbiddenAndConjunction -
- -
+ConfigSpace.read_and_write.json.
write
(configuration_space, indent=2)[source]¶- +ConfigSpace.read_and_write.json.write(configuration_space, indent=2)[source]¶
Create a string representation of a
@@ -1426,8 +1427,8 @@ConfigurationSpace
in json format. This string can be written to file.5.3 ForbiddenAndConjunction + +
6.2 Serialization with pcs-new¶
Pcs is a simple, human-readable file format for the description of an algorithm’s configurable parameters, their possible values, as well as any @@ -1446,8 +1447,8 @@
5.3 ForbiddenAndConjunction
pcs
module.-
-
-
-
ConfigSpace.read_and_write.pcs_new.
read
(pcs_string, debug=False)[source]¶
+ - +ConfigSpace.read_and_write.pcs_new.read(pcs_string, debug=False)[source]¶
Read in a
ConfigurationSpace
definition from a pcs file.Example
@@ -1473,8 +1474,8 @@5.3 ForbiddenAndConjunction -
- -
+ConfigSpace.read_and_write.pcs_new.
write
(configuration_space)[source]¶- +ConfigSpace.read_and_write.pcs_new.write(configuration_space)[source]¶
Create a string representation of a
@@ -1504,12 +1505,12 @@ConfigurationSpace
in pcs_new format. This string can be written to file.5.3 ForbiddenAndConjunction + +
6.3 Serialization with pcs¶
-
-
-
-
ConfigSpace.read_and_write.pcs.
read
(pcs_string, debug=False)[source]¶
+ - +ConfigSpace.read_and_write.pcs.read(pcs_string, debug=False)[source]¶
Read in a
ConfigurationSpace
definition from a pcs file.Example
@@ -1535,8 +1536,8 @@5.3 ForbiddenAndConjunction -
- -
+ConfigSpace.read_and_write.pcs.
write
(configuration_space)[source]¶- +ConfigSpace.read_and_write.pcs.write(configuration_space)[source]¶
Create a string representation of a
@@ -1566,16 +1567,16 @@ConfigurationSpace
in pcs format. This string can be written to file.5.3 ForbiddenAndConjunction +
- -
Utils¶
Functions defined in the utils module can be helpful to develop custom tools that create configurations from a given configuration space or modify a given configuration space.
-
-
-
-
ConfigSpace.util.
deactivate_inactive_hyperparameters
()¶
+ - +ConfigSpace.util.deactivate_inactive_hyperparameters()¶
Remove inactive hyperparameters from a given configuration
-
-
-
-
ConfigSpace.util.
fix_types
()¶
+ - +ConfigSpace.util.fix_types()¶
Iterate over all hyperparameters in the ConfigSpace and fix the types of the parameter values in configuration.
-
-
-
-
ConfigSpace.util.
generate_grid
()¶
+ - +ConfigSpace.util.generate_grid()¶
Generates a grid of Configurations for a given ConfigurationSpace. Can be used, for example, for grid search.
-
-
-
-
ConfigSpace.util.
get_one_exchange_neighbourhood
()¶
+ - +ConfigSpace.util.get_one_exchange_neighbourhood()¶
Return all configurations in a one-exchange neighborhood.
The method is implemented as defined by: Frank Hutter, Holger H. Hoos and Kevin Leyton-Brown @@ -1685,8 +1686,8 @@
Utils
- -
- -
© Copyright 2014-2021, Matthias Feurer, Katharina Eggensperger, Syed Mohsin Ali, Christina Hernandez Wunsch, Julien-Charles Levesque, Jost Tobias Springenberg, Philipp Mueller, Marius Lindauer, Jorn Tuyls.
- Created using Sphinx 3.5.4.
+ Created using Sphinx 4.0.2.
User Guide¶
In this user guide, the concepts of using different hyperparameters, applying conditions and forbidden clauses to a configuration space are explained.
These concepts will be introduced by defining a more complex configuration space for a support vector machine.
-2nd Example: Categorical hyperparameters and conditions¶
The scikit-learn SVM supports different kernels, such as an RBF, a sigmoid, a linear or a polynomial kernel. We want to include them in the configuration space. @@ -282,8 +283,8 @@
2nd Example: Categorical hyperparameters and conditionsEqualsCondition
is evaluated to True.
3rd Example: Forbidden clauses¶
It may occur that some states in the configuration space are not allowed. ConfigSpace supports this functionality by offering Forbidden Clauses.
@@ -338,8 +339,8 @@