226340622c3c9f6108d6efbed2f9967e2679802e,mvpa/clfs/glmnet.py,GLMNET,_predict,#GLMNET#Any#,165

Before Change


                                 s=self.__trained_model["beta.pure"].shape[0])
                                 //s=self.__lowest_Cp_step)
                                 
        fit = N.asarray(res["fit"])
        if len(fit.shape) == 0:
            // if we just got 1 sample with a scalar
            fit = fit.reshape( (1,) )
        return fit

After Change


            class_ind = rpy.r.as_vector(class_ind)

            // convert the strings to ints and subtract 1
            class_ind = N.array([int(float(c))-1 for c in class_ind])
            
            // convert to actual labels
            classes = self.__ulabels[class_ind]
            
        if not classes is None:
            // set the values and return none
            self.values = values
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 226340622c3c9f6108d6efbed2f9967e2679802e
Time: 2009-04-19
Author: psederberg@gmail.com
File Name: mvpa/clfs/glmnet.py
Class Name: GLMNET
Method Name: _predict


Project Name: chainer/chainer
Commit Name: b85e17830cdbefd3bf70794b27274e9598c2ab74
Time: 2019-09-10
Author: nc.jky0@gmail.com
File Name: chainer/initializers/orthogonal.py
Class Name: Orthogonal
Method Name: __call__


Project Name: chainer/chainer
Commit Name: 73a96857b6c318cc5760e36eea4c92a875f6104f
Time: 2019-07-12
Author: kataoka@preferred.jp
File Name: tests/chainerx_tests/unit_tests/routines_tests/test_manipulation.py
Class Name: TestReshape
Method Name: forward_xp