Skip to content

Commit

Permalink
MAINT add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Feb 14, 2017
1 parent 2a336af commit b638d44
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions smac/configspace/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@


def impute_inactive_hyperparameters(configs: List[Configuration]) -> np.ndarray:
"""Impute inactive hyperparameters in configurations with their default.
Necessary to apply an EPM to the data.
Parameters
----------
configs : List[Configuration]
List of configuration objects.
Returns
np.ndarray
Array with configuration hyperparameters. Inactive values are imputed
with their default value.
"""
configs_array = np.array([config.get_array() for config in configs],
dtype=np.float64)
configuration_space = configs[0].configuration_space
Expand Down

0 comments on commit b638d44

Please sign in to comment.