Closed
Description
Description
Currently the metric()
method of MahalanobisMixin
returns the PSD matrix self.transformer_.T.dot(self.transformer_)
.
I am not sure when this is really useful in practice?Shouldn't we rather return the metric function itself as a callable, or better a DistanceMetric
that can be plugged easily into some sklearn estimators? This seems more useful.
Defined this way, metric()
could be an abstract method of BaseMetricLearner
(since every metric learner should be based on some kind of metric).
Metadata
Metadata
Assignees
Labels
No labels