55bd09be272701797abcf9e549fffe8b0311e387,elfi/bo/gpy_model.py,GPyRegression,evaluate,#GPyRegression#Any#,74

Before Change


        if self.gp is None:
            // TODO: return from GP prior
            return 0.0, 0.0, 0.0
        m, s2 = self.gp.predict(np.atleast_2d(x))
        return m, s2, np.sqrt(s2)

    def eval_mean(self, x):
        Returns the GP model mean function at x.

After Change


        
        if self._gp is None:
            // TODO: return from GP mean function if given
            return np.zeros(len(x), self.input_dim), \
                   np.ones(len(x), self.input_dim)

        // Need to cast as 2d array for gpy
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: elfi-dev/elfi
Commit Name: 55bd09be272701797abcf9e549fffe8b0311e387
Time: 2017-03-28
Author: jarno.lintusaari@aalto.fi
File Name: elfi/bo/gpy_model.py
Class Name: GPyRegression
Method Name: evaluate


Project Name: scikit-learn-contrib/DESlib
Commit Name: 0e17f47e9a4920e276bb61b60d6de16264bc6bcf
Time: 2017-12-29
Author: rafaelmenelau@gmail.com
File Name: pythonds/util/aggregation.py
Class Name:
Method Name: weighted_majority_voting


Project Name: mlflow/mlflow
Commit Name: 20675f9f01e8c365999fee3ff1e4ec55ec5f8b57
Time: 2020-12-15
Author: 39497902+dbczumar@users.noreply.github.com
File Name: tests/onnx/test_onnx_model_export.py
Class Name:
Method Name: predicted