Skip to content

Commit 779a93a

Browse files
author
William de Vazelhes
committed
FIX: update MetricTransformer to be abstract method and have the appropriate doc
1 parent af0a3ac commit 779a93a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

metric_learn/base_metric.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ def score_pairs(self, pairs):
3131

3232
class MetricTransformer():
3333

34+
@abstractmethod
3435
def transform(self, X):
3536
"""Applies the metric transformation.
3637
3738
Parameters
3839
----------
39-
X : (n x d) matrix, optional
40-
Data to transform. If not supplied, the training data will be used.
40+
X : (n x d) matrix
41+
Data to transform.
4142
4243
Returns
4344
-------

0 commit comments

Comments
 (0)