Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Pass constraints to anchor point generator #150

Merged
merged 2 commits into from
Feb 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GPyOpt/optimization/anchor_points_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get(self, num_anchor=5, duplicate_manager=None, unique=False, context_manage
## --- We use the context handler to remove duplicates only over the non-context variables
if context_manager and not self.space._has_bandit():
space_configuration_without_context = [self.space.config_space_expanded[idx] for idx in context_manager.nocontext_index_obj]
space = Design_space(space_configuration_without_context)
space = Design_space(space_configuration_without_context, context_manager.space.constraints)
add_context = lambda x : context_manager._expand_vector(x)
else:
space = self.space
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-1.659559905948519987e-01 -1.222984215693606602e+00
4.406489868843161961e-01 -9.412193658669872898e-01
-3.953348547363204624e-01 -3.096975773079901906e-01
-7.064882183657739123e-01 1.164502020100708357e-01
-1.616109711934103910e-01 5.114025305352067896e-01
7.107128251907395278e-01 -2.378604029244246743e-01
-2.987656213860927501e-01 -1.013580725607554633e-01
-2.823079326929183175e-01 5.362664625344728542e-01
6.309108269155705440e-01 2.689531221550316431e-01
8.846351605208608859e-01 5.940212477009341185e-01
-4.703260076103039644e-01 7.420839828045457942e-01
9.232708475493567324e-01 1.381220328900831795e-01
1.127100125745781334e-01 -1.276510682502884908e-01
-7.921852253324037640e-01 5.829608511174884100e-01
-8.033455913685241256e-01 6.681582197823692226e-01
-8.365340705101338425e-01 7.409383255863155604e-01
-4.698660736843853769e-01 -7.542816046605178570e-01
6.340789145251157777e-01 -5.678732009331840525e-01
-8.957253699248373113e-01 1.653566723136625782e-01
9.725136602999131519e-01 6.613336224664068119e-01
-0.165955990594852 -1.2229842156936066
0.4406489868843162 -0.9412193658669873
-0.39533485473632046 -0.3096975773079902
-0.7064882183657739 0.11645020201007084
-0.1616109711934104 0.5114025305352068
0.8460060815073307 -0.09654585655388481
0.42129453106421 0.5411026606436793
-0.27067263037622546 -0.7773176139507966
0.7143475474889778 0.6757693186032174
0.546758394769407 0.6732334569585419
0.6116040726004173 0.2179539190121953
-0.6979401495314701 0.6853292029271287
0.9725136602999132 0.6613336224664068
-0.3947307012607917 -0.7710994363337204
-0.8867648541511022 0.506327874465911
0.7574514994920194 0.2744491479066373
0.3814658794809189 -0.5935115492873151
-0.11047944658786246 -0.5867788112296773
-0.4518774611614127 -0.5603720990073233
0.1846090170171062 -0.6958669931894023