Skip to content

Commit

Permalink
Merge pull request #178 from automl/maint/speedupincativehpimputation
Browse files Browse the repository at this point in the history
Maint/speedupincativehpimputation
  • Loading branch information
mfeurer authored Feb 14, 2017
2 parents 1425f78 + e316119 commit b99dd8f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 0.3

* Major speed improvements when sampling new configurations:
* Improved conditional hyperparameter imputation (PR #176)
* Faster generation of the one exchange neighborhood (PR #174)
* FIX #171 potential bug with pSMAC
* FIX #175 backwards compability for reading runhistory files

# 0.2.4

* CI only check code quality for python3
Expand Down
2 changes: 1 addition & 1 deletion smac/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Version information."""

# The following line *must* be the last in the module, exactly as formatted:
__version__ = "0.2.4"
__version__ = "0.3.0"
6 changes: 2 additions & 4 deletions smac/epm/rf_with_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,8 @@ def train(self, X, y, **kwargs):
"""

self.X = X
self.y = y

y = y.flatten()
data = pyrfr.regression.numpy_data_container(self.X, y, self.types)
self.y = y.flatten()
data = pyrfr.regression.numpy_data_container(self.X, self.y, self.types)

self.rf.fit(data)
return self
Expand Down
3 changes: 1 addition & 2 deletions smac/smbo/local_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def maximize(self, start_point, *args):
"""
incumbent = start_point
# Compute the acquisition value of the incumbent
incumbent_array = incumbent.get_array()
incumbent_array[~np.isfinite(incumbent_array)] = -1
incumbent_array = convert_configurations_to_array([incumbent])
acq_val_incumbent = self.acquisition_function(incumbent_array, *args)

local_search_steps = 0
Expand Down

0 comments on commit b99dd8f

Please sign in to comment.