178553d4d4edfdc155d876c5ac75aaa1105445ee,src/spn/structure/leaves/conditional/utils.py,,get_scipy_obj_params,#Any#Any#,11
Before Change
elif isinstance(node, Conditional_Bernoulli):
// assert len(node.p) == obs.shape[0]
p = node.inv_linkfunc(np.dot(obs, node.weights))
assert len(p) == obs.shape[0]
return bernoulli, {"p": p}
else:
After Change
pred = np.dot(obs, node.weights[:-1]) + node.weights[-1]
if isinstance(node, Conditional_Gaussian):
mean = pred
return norm , {"loc": mean, "scale": np.ones(obs.shape[0]) }
elif isinstance(node, Conditional_Poisson):
mu = np.exp(pred)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: SPFlow/SPFlow
Commit Name: 178553d4d4edfdc155d876c5ac75aaa1105445ee
Time: 2018-08-15
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/structure/leaves/conditional/utils.py
Class Name:
Method Name: get_scipy_obj_params
Project Name: SPFlow/SPFlow
Commit Name: c52045a02486d7c3793b1083f5b281a1e5fdb4fb
Time: 2018-09-11
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/structure/leaves/conditional/utils.py
Class Name:
Method Name: get_scipy_obj_params
Project Name: rasbt/mlxtend
Commit Name: 206f681e3a08d2f6079484de1ba3ea7abaf1dadc
Time: 2015-10-20
Author: mail@sebastianraschka.com
File Name: mlxtend/regression/linear_regression.py
Class Name: LinearRegression
Method Name: _normal_equation