Skip to content

Commit 3d1a9b9

Browse files
committed
Add an assertion
1 parent e50ad16 commit 3d1a9b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ConfigSpace/c_util.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ cpdef np.ndarray change_hp_value(
224224

225225
# Activate hyperparameters if their parent node got activated
226226
while len(to_visit) > 0:
227+
assert np.all(scheduled[to_visit])
227228
current_idx = heapq.heappop(to_visit)
228229
current_name = configuration_space._idx_to_hyperparameter[current_idx]
229230
conditions = configuration_space._parent_conditions_of[current_name]

0 commit comments

Comments
 (0)