56778bc417798a7a63669c54abf5fcad508e3e51,pyglmnet/pyglmnet.py,GLM,__init__,#GLM#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,304
Before Change
random_state=0, verbose=False):
if reg_lambda is None:
reg_lambda = np.logspace(np.log(0.5), np.log(0.01), 10,
base=np.exp(1))
if not isinstance(reg_lambda, (list, np.ndarray)):
reg_lambda = [reg_lambda]
if not isinstance(max_iter, int):
max_iter = int(max_iter)
After Change
random_state=0, verbose=False):
if not isinstance(max_iter, int):
raise ValueError("max_iter must be of type int")
self.distr = distr
self.alpha = alpha
self.reg_lambda = reg_lambda
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: glm-tools/pyglmnet
Commit Name: 56778bc417798a7a63669c54abf5fcad508e3e51
Time: 2017-03-30
Author: pavan.ramkumar@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name: GLM
Method Name: __init__
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 8acacf7ecdddd031366f2c044bdc6ce5ba8e5a62
Time: 2018-10-04
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/mxnet.py
Class Name: MXTextClassifier
Method Name: predict_from_embedding
Project Name: rusty1s/pytorch_geometric
Commit Name: 910817862dd01c539e6ad32930fe3d528f5487d2
Time: 2020-10-09
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/utils/softmax.py
Class Name:
Method Name: softmax