Closed
Description
import sklearn
def user_defined_metric(u, v):
...
cluster_algorithm = sklearn.cluster.DBSCAN(metric=user_defined_metric)
cluster_algorithm.fit(matrix)
...
does not work if matrix contains numpy.nan values. However, the user-defined metric might be able to handle nan values.
Would be great if you could allow nan values if a user-defined metric is defined.