list_counts.append(valid_places)
print(len(list_counts))
for i in range(0, len(list_counts)):
print(final.shape, list_counts[i].shape, np.max(final), np.max(
list_counts[i]))
final += list_counts[i]
print("initialising candidates", num_labels_add)
candidates = np.zeros_like(data, dtype=np.int32)
After Change
def candidate_indices(win_sizes, data, constraint):
unique = np.unique(np.round(data))
list_labels = []
data = np.round(data)
if constraint.list_labels is not None:
list_labels = constraint.list_labels
for label in constraint.list_labels:
if label not in unique: