1ec4287799a1ccfc019f564f3ce0de468de6e313,ParamSklearn/implementations/ProjLogit.py,ProjLogit,predict_proba,#ProjLogit#Any#,74
Before Change
def predict_proba(self, X):
if self.w == None:
return np.zeros(X.shape[0])
testx = np.hstack([np.ones((X.shape[0], 1)), X])
pred = np.dot(testx, self.w)
//print(pred)
After Change
return np.argmax(res, axis = 1)
def predict_proba(self, X):
if self.w0 == None:
raise NotImplementedError
testx = np.hstack([np.ones((X.shape[0], 1)), X])
pred = np.dot(testx, self.w0)
for ws, w in zip(self.ws_all, self.w_all):
res = np.hstack([pred, np.power(pred, 2) / 2., np.power(pred, 3) / 6., np.power(pred, 4) / 24.])
p_res = proj_simplex(np.dot(res, ws))
pred = p_res + np.dot(testx, w)
return proj_simplex(pred)
def predict_log_proba(self, X):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: automl/auto-sklearn
Commit Name: 1ec4287799a1ccfc019f564f3ce0de468de6e313
Time: 2015-04-09
Author: springj@informatik.uni-freiburg.de
File Name: ParamSklearn/implementations/ProjLogit.py
Class Name: ProjLogit
Method Name: predict_proba
Project Name: flow-project/flow
Commit Name: bc103972a80978e6ca0a41d33925b5f2e28ad9c8
Time: 2017-03-08
Author: eugenevinitsky@users.noreply.github.com
File Name: cistar-dev/cistar/controllers/base_controller.py
Class Name: BaseController
Method Name: safe_velocity
Project Name: automl/SMAC3
Commit Name: 640a3574b411e4c91add7acd3fa21595d8f63c28
Time: 2016-03-07
Author: lindauer@informatik.uni-freiburg.de
File Name: smac/epm/rfr_imputator.py
Class Name: RFRImputator
Method Name: impute