Skip to content

Output of metric() method #147

Closed
Closed
@bellet

Description

@bellet

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions