3e38fe09a87e6ef05289f3cbe6ffa03e2dc716e8,metric_learn/rca.py,RCA,_process_data,#RCA#Any#,56

Before Change


    data = np.asanyarray(data)
    self.X = data
    n, d = data.shape
    return data, d

  def _process_chunks(self, data, chunks):
    chunks = np.asanyarray(chunks)
    num_chunks = chunks.max() + 1

After Change


    return self.transformer_

  def _process_data(self, X):
    self.X_ = X = check_array(X)

    // PCA projection to remove noise and redundant information.
    if self.pca_comps is not None:
      pca = decomposition.PCA(n_components=self.pca_comps, svd_solver="full")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: metric-learn/metric-learn
Commit Name: 3e38fe09a87e6ef05289f3cbe6ffa03e2dc716e8
Time: 2017-03-02
Author: perimosocordiae@gmail.com
File Name: metric_learn/rca.py
Class Name: RCA
Method Name: _process_data


Project Name: tgsmith61591/pmdarima
Commit Name: 9253120abe6f429015dbc7b828603e73a50f8c34
Time: 2018-09-05
Author: tgsmith61591@gmail.com
File Name: pyramid/arima/arima.py
Class Name: ARIMA
Method Name: predict


Project Name: sebp/scikit-survival
Commit Name: 95eae9185d8df5dc4d3de030dc19c1d475f18e0f
Time: 2016-12-26
Author: sebp@k-d-w.org
File Name: survival/util.py
Class Name:
Method Name: check_y_survival


Project Name: tgsmith61591/pmdarima
Commit Name: 11350919148ac860e025264f8dd9fcb6ff8542ff
Time: 2019-11-19
Author: tgsmith61591@gmail.com
File Name: pmdarima/arima/arima.py
Class Name:
Method Name: _seasonal_prediction_with_confidence