alexanderholt
11/15/2017 - 4:44 PM

Change binary to boolean

core_samples = np.zeros_like(labels, dtype = bool)  #switches array of binary into array of booleans

core_samples[dbscn.core_sample_indices_] = True 
print(core_samples)