9439f5215fde61ee40910b0320ff4dd8d28571e2,fancyimpute/bayesian_ridge_regression.py,BayesianRidgeRegression,predict_dist,#BayesianRidgeRegression#,84

Before Change


        else:
            X_ones = X
        mus = self.predict(X)
        covar = self.sigma_squared_estimate * self.inverse_covariance
        sigmas_squared = self.sigma_squared_estimate + np.sum(
            np.dot(X_ones, covar) * X_ones, axis=1)
        return mus, sigmas_squared

After Change



        rescaled_X = dot(X_ones, self.covar)
        rescaled_X *= X_ones
        sigmas_squared = rescaled_X.sum(axis=1)
        sigmas_squared += self.sigma_squared_estimate
        return mus, sigmas_squared
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: predict_dist


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: predict_dist


Project Name: glm-tools/pyglmnet
Commit Name: 4d302bc9fda66b8352b7d2956cd22714c6959096
Time: 2020-08-16
Author: giovanni.det@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _gradhess_logloss_1d


Project Name: glm-tools/pyglmnet
Commit Name: c35829c9a7624fe9722543fb874d0aa2a7b8fb61
Time: 2020-08-16
Author: giovanni.det@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _gradhess_logloss_1d