9439f5215fde61ee40910b0320ff4dd8d28571e2,fancyimpute/bayesian_ridge_regression.py,BayesianRidgeRegression,fit,#BayesianRidgeRegression#,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


                //
                // We"re trading a little more time spent in the Python
                // interpreter with a savings of allocated arrays.
                outer_product[i, i] += lambda_reg

            self.inverse_covariance = inv(outer_product)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: Calamari-OCR/calamari
Commit Name: 8d0d0c7a6db3904f0222cbe058388a92cf21a548
Time: 2021-02-06
Author: ChWick@users.noreply.github.com
File Name: calamari_ocr/ocr/dataset/imageprocessors/scale_to_height_processor.py
Class Name: ScaleToHeightProcessor
Method Name: scale_to_h


Project Name: nipy/dipy
Commit Name: 8d321682200b3d87c868bbf2684f9c38248fbf84
Time: 2019-07-18
Author: skab12@gmail.com
File Name: dipy/tracking/tests/test_utils.py
Class Name:
Method Name: test_density_map