130cbadff294b686e466d430f26b2d069f6bbf59,metric_learn/lsml.py,_BaseLSML,_fit,#_BaseLSML#Any#Any#,55

Before Change


    if self.prior is None:
      X = np.vstack({tuple(row) for row in
                     quadruplets.reshape(-1, quadruplets.shape[2])})
      prior_inv = np.atleast_2d(np.cov(X, rowvar=False))
      M = np.linalg.inv(prior_inv)
    else:
      M = self.prior
      prior_inv = np.linalg.inv(self.prior)

After Change


             "set prior="covariance". This warning will disappear in "
             "v0.6.0, and `prior` parameter"s default value will be set to "
             ""identity".")
      warnings.warn(msg, ChangedBehaviorWarning)
      prior = "identity"
    else:
      prior = self.prior
    M, prior_inv = _initialize_metric_mahalanobis(quadruplets, prior,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: metric-learn/metric-learn
Commit Name: 130cbadff294b686e466d430f26b2d069f6bbf59
Time: 2019-06-07
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/lsml.py
Class Name: _BaseLSML
Method Name: _fit


Project Name: metric-learn/metric-learn
Commit Name: 85185175f356697f4a91feacaed2d3a9d70af95f
Time: 2019-06-12
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/rca.py
Class Name: RCA
Method Name: fit


Project Name: metric-learn/metric-learn
Commit Name: 130cbadff294b686e466d430f26b2d069f6bbf59
Time: 2019-06-07
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/sdml.py
Class Name: _BaseSDML
Method Name: _fit