a68ad3bda020d9ade2b33c58a3f1406de41b682c,pyglmnet/pyglmnet.py,GLM,fit,#GLM#Any#Any#,661

Before Change


                           X, y, self.eta, self.group, beta))

            if t > 1:
                DL.append(L[-1] - L[-2])
                if np.abs(DL[-1] / L[-1]) < tol:
                    msg = ("\tConverged. Loss function:"
                           " {0:.2f}").format(L[-1])
                    logger.info(msg)

After Change


                beta = beta - self.learning_rate * grad

            elif self.solver == "cdfast":
                beta_old = deepcopy(beta)
                beta, z = \
                    self._cdfast(X, y, z, ActiveSet, beta, reg_lambda)
                if t > 1:
                    if np.linalg.norm(beta - beta_old) / \
                        np.linalg.norm(beta_old) < tol / lr:
                        msg = ("\tConverged in {0:d} iterations".format(t))
                        logger.info(msg)
                        break
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: glm-tools/pyglmnet
Commit Name: a68ad3bda020d9ade2b33c58a3f1406de41b682c
Time: 2018-09-05
Author: pavan.ramkumar@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name: GLM
Method Name: fit


Project Name: glm-tools/pyglmnet
Commit Name: 4367785c9131771d2dd80b45d4bbb4ca00bd24ac
Time: 2018-09-08
Author: pavan.ramkumar@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name: GLM
Method Name: fit


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 01568d0d6eb789dc0a026d28bd232958babee07f
Time: 2017-11-06
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/encoders/self_attention_encoder.py
Class Name: SelfAttentionEncoder
Method Name: encode