3899653be835598a9d2b03e3edb82c11ecddb2ff,metric_learn/nca.py,NCA,fit,#NCA#Any#Any#,68

Before Change


    X, labels = self._prepare_inputs(X, y, ensure_min_samples=2)
    n, d = X.shape
    num_dims = self.num_dims
    if num_dims is None:
        num_dims = d

    // Measure the total training time
    train_time = time.time()

    // Initialize A to a scaling matrix
    A = np.zeros((num_dims, d))

After Change


                    DeprecationWarning)
    X, labels = self._prepare_inputs(X, y, ensure_min_samples=2)
    n, d = X.shape
    n_components = _check_n_components(d, self.n_components)

    // Measure the total training time
    train_time = time.time()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: metric-learn/metric-learn
Commit Name: 3899653be835598a9d2b03e3edb82c11ecddb2ff
Time: 2019-06-07
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/nca.py
Class Name: NCA
Method Name: fit


Project Name: metric-learn/metric-learn
Commit Name: 3899653be835598a9d2b03e3edb82c11ecddb2ff
Time: 2019-06-07
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/lfda.py
Class Name: LFDA
Method Name: fit


Project Name: metric-learn/metric-learn
Commit Name: 3899653be835598a9d2b03e3edb82c11ecddb2ff
Time: 2019-06-07
Author: 31916524+wdevazelhes@users.noreply.github.com
File Name: metric_learn/rca.py
Class Name: RCA
Method Name: _check_dimension