1ec4287799a1ccfc019f564f3ce0de468de6e313,ParamSklearn/implementations/ProjLogit.py,ProjLogit,predict_proba,#ProjLogit#Any#,74
Before Change
return res
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)
p_res = proj_simplex(pred)
return p_res
def predict_log_proba(self, X):
if self.w == None:
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: 6
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: 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
Project Name: deepchem/deepchem
Commit Name: c5f9a908910ab118c465de659a8a90c9d64aa708
Time: 2016-11-14
Author: flee2@stanford.edu
File Name: deepchem/trans/transformers.py
Class Name: PowerTransformer
Method Name: transform