c35829c9a7624fe9722543fb874d0aa2a7b8fb61,pyglmnet/pyglmnet.py,,_gradhess_logloss_1d,#Any#Any#Any#Any#Any#Any#,303
Before Change
grad_mu = _grad_mu(distr, z, eta)
hess_mu = np.exp(-z)/expit(z)**2
partial_beta_a =hess_mu * (1 + np.log(mu + r))
partial_beta_b = grad_mu ** 2 / (mu + r)
partial_beta_c = y * (hess_mu / mu - (grad_mu) ** 2 / mu ** 2)
gk = -np.sum(partial_beta_a+partial_beta_b+partial_beta_c)
hk = -np.sum(np.dot(partial_beta_a.T, xk)+np.dot(partial_beta_b.T, xk)+np.dot(partial_beta_c.T, xk))
elif distr == "gamma":
raise NotImplementedError("cdfast is not implemented for Gamma "
After Change
grad_mu = _grad_mu(distr, z, eta)
hess_mu = np.exp(-z)*expit(z)**2
partial_beta_0_1 = hess_mu*((r+y)/(r+mu)-(y/mu))
partial_beta_0_2 = grad_mu**2 * (y/mu**2 - (r+y)/(r+mu)**2)
partial_beta_0 = partial_beta_0_1+partial_beta_0_2
gk = np.sum(partial_beta_0)
hk = np.dot(partial_beta_0.T, xk**2)
elif distr == "gamma":
raise NotImplementedError("cdfast is not implemented for Gamma "
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: glm-tools/pyglmnet
Commit Name: c35829c9a7624fe9722543fb874d0aa2a7b8fb61
Time: 2020-08-16
Author: giovanni.det@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _gradhess_logloss_1d
Project Name: glm-tools/pyglmnet
Commit Name: c35829c9a7624fe9722543fb874d0aa2a7b8fb61
Time: 2020-08-16
Author: giovanni.det@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _gradhess_logloss_1d
Project Name: elfi-dev/elfi
Commit Name: eb8c188803d258dbcae61764ffe8085db627424b
Time: 2019-11-25
Author: 33959025+hpesonen@users.noreply.github.com
File Name: elfi/examples/daycare.py
Class Name:
Method Name: ss_shannon
Project Name: glm-tools/pyglmnet
Commit Name: 4d302bc9fda66b8352b7d2956cd22714c6959096
Time: 2020-08-16
Author: giovanni.det@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: _gradhess_logloss_1d
Project Name: ntucllab/libact
Commit Name: e3f85d146653691809ce1a38388c3f199dbe6e7d
Time: 2015-03-03
Author: iamyuanchung@gmail.com
File Name: libact/query_strategies/uncertainty_sampling.py
Class Name: UncertaintySampling
Method Name: make_query