c61a48cc0bdc8c5f748495a7e2567789cb748cad,elfi/methods/bo/gpy_regression.py,GPyRegression,predictive_gradients,#GPyRegression#Any#,180
Before Change
grad_var : np.array
with shape (x.shape[0], input_dim)
x = self._check_input(x)
if self._gp is None:
// TODO: return from GP mean function if given
return np.zeros((x.shape[0], self.input_dim)), \
np.zeros((x.shape[0], self.input_dim))
After Change
// Ensure it"s 2d for GPy
x = np.asanyarray(x).reshape((-1, self.input_dim))
if self._gp is None:
// TODO: return from GP mean function if given
return np.zeros((x.shape[0], self.input_dim)), \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: elfi-dev/elfi
Commit Name: c61a48cc0bdc8c5f748495a7e2567789cb748cad
Time: 2017-06-30
Author: jarno.lintusaari@aalto.fi
File Name: elfi/methods/bo/gpy_regression.py
Class Name: GPyRegression
Method Name: predictive_gradients
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: update
Project Name: elfi-dev/elfi
Commit Name: c61a48cc0bdc8c5f748495a7e2567789cb748cad
Time: 2017-06-30
Author: jarno.lintusaari@aalto.fi
File Name: elfi/methods/bo/gpy_regression.py
Class Name: GPyRegression
Method Name: predict