70c416bbd7ebc468fda10c37b1f2965d43059249,skopt/learning/gbrt.py,GradientBoostingQuantileRegressor,predict,#GradientBoostingQuantileRegressor#,54

Before Change



    def predict(self, X):
        Predict for each quantile.
        return np.asarray([rgr.predict(X) for rgr in self.regressors_]).T

After Change


                    "return_std works only if the quan")
            low = self.regressors_[self.quantiles.index(0.16)].predict(X)
            high = self.regressors_[self.quantiles.index(0.84)].predict(X)
            mean = self.regressors_[self.quantiles.index(0.5)].predict(X)
            return mean, ((high - low) / 2.0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 70c416bbd7ebc468fda10c37b1f2965d43059249
Time: 2016-04-26
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/learning/gbrt.py
Class Name: GradientBoostingQuantileRegressor
Method Name: predict


Project Name: alfredfrancis/ai-chatbot-framework
Commit Name: d68beca6f553622b92f2709cf984023dbf284e98
Time: 2016-12-23
Author: alfred.francis@pearldatadirect.com
File Name: core/intentClassifier.py
Class Name: IntentClassifier
Method Name: predict


Project Name: rlworkgroup/garage
Commit Name: c0fd41d73da7e7a71d6054e87370be35ca708e67
Time: 2020-10-21
Author: 31981600+yeukfu@users.noreply.github.com
File Name: src/garage/tf/algos/te_npo.py
Class Name: TENPO
Method Name: _train_once