sklearn.metrics
.DistanceMetric¶
- class sklearn.metrics.DistanceMetric¶
Methods
Get the given distance metric from the string identifier.
- get_metric()¶
Get the given distance metric from the string identifier.
See the docstring of DistanceMetric for a list of available metrics.
- Parameters:
- metricstr or class name
The distance metric to use
- dtype{np.float32, np.float64}, default=np.float64
The dtype of the data on which the metric will be applied
- **kwargs
additional arguments will be passed to the requested metric