Skip to content

Commit

Permalink
fix same pointer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Servon committed Aug 3, 2021
1 parent 91a31d4 commit 050f56a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zoopt/algos/opt_algorithms/racos/racos_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def __init__(self, dim, positive, negative, ub=1):
self.__x_positive = None
self.__uncertain_bit = ub

self.__sample_region = copy.deepcopy(dim.get_regions())
regions = dim.get_regions()
for i in range(dim.get_size()):
temp = [regions[i][0], regions[i][1]]
self.__sample_region.append(temp)

def reset_classifier(self):
"""
Expand Down

0 comments on commit 050f56a

Please sign in to comment.