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

Before Change


            z = beta[0] + np.dot(X, beta[1:])       // cache z

        // Initialize loss accumulators
        L, DL = list(), list()
        for t in range(0, self.max_iter):
            if self.solver == "batch-gradient":
                grad = _grad_L2loss(self.distr,
                                    alpha, self.Tau,

After Change


                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
            // Apply proximal operator
            beta[1:] = self._prox(beta[1:], reg_lambda * alpha)

            // Update active set
            if self.solver == "cdfast":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: streamlit/streamlit
Commit Name: 7a60bb5289b4ecb59a510f8ca666948c7f4c2e3d
Time: 2019-03-28
Author: thiagot@gmail.com
File Name: lib/streamlit/server.py
Class Name: Server
Method Name: loop_coroutine