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

Before Change


        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


    def _getFeatureIds(self):

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: 7

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: HyperGAN/HyperGAN
Commit Name: a02527e58d09b7f86575f5b790db1fa9dbc8e4e6
Time: 2016-10-29
Author: martyn@255bits.com
File Name: lib/gan.py
Class Name:
Method Name: discriminator


Project Name: HyperGAN/HyperGAN
Commit Name: e4ee8e989f0ee8138798c290233c1c3ec7d3fb61
Time: 2016-10-29
Author: martyn@255bits.com
File Name: lib/gan.py
Class Name:
Method Name: generator