pyml.neighbors.knn.UnknownMetric#
- exception UnknownMetric(metric)[source]#
Exception raised for unknown metric methods
- Parameters:
metric (str) – Name of the metric provided by the user
Examples
>>> from pyml.neighbors import kNNClassifier >>> model = kNNClassifier(metric='abc metric') The metric "abc metric" is not implemented. Please refer to the documentation.