I met a problem when I use sklearn.cluster.DBSCAN.
If I use DBSCAN(metric="russellrao")
, which data format should be?
I try 2 ways and both return pred = [-1 -1 -1 ..., -1 -1 -1]
. You can see the 2 data format below.
npy = df2.values
y_pred = DBSCAN(metric="russellrao").fit_predict(npy)
1.
npy =
2.
npy =
print y_pred [-1 -1 -1 ..., -1 -1 -1]
so,which format is the right anwser?