Skip to content

Commit 050f56a

Browse files
author
Servon
committed
fix same pointer bug
1 parent 91a31d4 commit 050f56a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

zoopt/algos/opt_algorithms/racos/racos_classification.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def __init__(self, dim, positive, negative, ub=1):
3838
self.__x_positive = None
3939
self.__uncertain_bit = ub
4040

41-
self.__sample_region = copy.deepcopy(dim.get_regions())
41+
regions = dim.get_regions()
42+
for i in range(dim.get_size()):
43+
temp = [regions[i][0], regions[i][1]]
44+
self.__sample_region.append(temp)
4245

4346
def reset_classifier(self):
4447
"""

0 commit comments

Comments
 (0)