180646fa18c1a0d3965995118781fef58d8d6459,sklearn/linear_model/_bayes.py,BayesianRidge,_update_coef_,#BayesianRidge#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,326

Before Change


                                 lambda_ / alpha_)[:, np.newaxis])
            coef_ = np.dot(coef_, XT_y)
        else:
            coef_ = np.dot(X.T, np.dot(
                U / (eigen_vals_ + lambda_ / alpha_)[None, :], U.T))
            coef_ = np.dot(coef_, y)

        rmse_ = np.sum((y - np.dot(X, coef_)) ** 2)

After Change


                                               alpha_)[:, np.newaxis],
                                         XT_y])
        else:
            coef_ = np.linalg.multi_dot([X.T,
                                         U / (eigen_vals_ + lambda_ /
                                              alpha_)[None, :],
                                         U.T, y])

        rmse_ = np.sum((y - np.dot(X, coef_)) ** 2)

        return coef_, rmse_
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: 180646fa18c1a0d3965995118781fef58d8d6459
Time: 2020-07-04
Author: hi@srimukh.com
File Name: sklearn/linear_model/_bayes.py
Class Name: BayesianRidge
Method Name: _update_coef_


Project Name: scikit-learn/scikit-learn
Commit Name: 180646fa18c1a0d3965995118781fef58d8d6459
Time: 2020-07-04
Author: hi@srimukh.com
File Name: sklearn/linear_model/_bayes.py
Class Name: BayesianRidge
Method Name: _update_coef_


Project Name: scikit-learn/scikit-learn
Commit Name: 180646fa18c1a0d3965995118781fef58d8d6459
Time: 2020-07-04
Author: hi@srimukh.com
File Name: sklearn/decomposition/_nmf.py
Class Name:
Method Name: _multiplicative_update_h


Project Name: scikit-learn/scikit-learn
Commit Name: 180646fa18c1a0d3965995118781fef58d8d6459
Time: 2020-07-04
Author: hi@srimukh.com
File Name: sklearn/decomposition/_fastica.py
Class Name:
Method Name: _sym_decorrelation


Project Name: scikit-learn/scikit-learn
Commit Name: 180646fa18c1a0d3965995118781fef58d8d6459
Time: 2020-07-04
Author: hi@srimukh.com
File Name: sklearn/decomposition/_nmf.py
Class Name:
Method Name: _beta_divergence


Project Name: scikit-learn/scikit-learn
Commit Name: 180646fa18c1a0d3965995118781fef58d8d6459
Time: 2020-07-04
Author: hi@srimukh.com
File Name: sklearn/decomposition/_fastica.py
Class Name:
Method Name: _gs_decorrelation