9439f5215fde61ee40910b0320ff4dd8d28571e2,fancyimpute/bayesian_ridge_regression.py,BayesianRidgeRegression,fit,#BayesianRidgeRegression#Any#Any#Any#,28
Before Change
else:
lambda_reg = self.lambda_reg
regularization_matrix = lambda_reg * np.eye(d)
regularization_matrix[-1, -1] = 0 // don"t need to regularize the intercept
self.inverse_covariance = np.linalg.inv(
outer_product + regularization_matrix)
else:
After Change
// interpreter with a savings of allocated arrays.
outer_product[i, i] += lambda_reg
self.inverse_covariance = inv(outer_product)
else:
self.inverse_covariance = inverse_covariance
// estimate of the parameters
self.beta_estimate = multi_dot([self.inverse_covariance, X_ones.T, y])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: iskandr/fancyimpute
Commit Name: 9439f5215fde61ee40910b0320ff4dd8d28571e2
Time: 2016-01-10
Author: alex.rubinsteyn@gmail.com
File Name: fancyimpute/bayesian_ridge_regression.py
Class Name: BayesianRidgeRegression
Method Name: fit
Project Name: nipy/dipy
Commit Name: 163499dc5c028f63213fd9e47f718662533b0ae5
Time: 2010-09-02
Author: garyfallidis@gmail.com
File Name: dipy/core/correction.py
Class Name:
Method Name: motion_correction
Project Name: bashtage/linearmodels
Commit Name: cc0c0b682a503df7a1961fae9294528f296269c5
Time: 2017-03-14
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/iv/results.py
Class Name: OLSResults
Method Name: test_linear_constraint
Project Name: nilearn/nilearn
Commit Name: 422881afa09ccd1e5a19ae31a38638e04d6eae7d
Time: 2014-11-24
Author: loic.esteve@ymail.com
File Name: plot_localizer_simple_analysis.py
Class Name:
Method Name: