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]
            
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: rank_response


Project Name: chainer/chainerrl
Commit Name: 7384719699a07a5298c29f3205859b45533853ae
Time: 2017-02-27
Author: muupan@gmail.com
File Name: chainerrl/agents/dqn.py
Class Name: DQN
Method Name: act