5bc47f908692c2c46173eb2451960816b6d0b58e,mvpa/clfs/glmnet.py,_GLMNET,_predict,#_GLMNET#Any#,205
Before Change
type="class",
s=self.__last_lambda)
rpy.set_default_mode(rpy.NO_DEFAULT)
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]
else:
After Change
s=self.__last_lambda))
// convert to 0-based ints
class_ind = (class_ind-1).astype("int")
// convert to actual labels
classes = self._ulabels[class_ind][:,0]
else:
// is gaussian, so just remove last dim of values
values = values[:,0]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: PyMVPA/PyMVPA
Commit Name: 5bc47f908692c2c46173eb2451960816b6d0b58e
Time: 2010-01-10
Author: psederberg@gmail.com
File Name: mvpa/clfs/glmnet.py
Class Name: _GLMNET
Method Name: _predict
Project Name: calico/basenji
Commit Name: aecaec17e08bbcdaa647dc22c8d1adab25ba447e
Time: 2019-04-11
Author: drk@calicolabs.com
File Name: bin/basenji_test_genes.py
Class Name:
Method Name: main
Project Name: deepfakes/faceswap
Commit Name: d93e7b11140c11b43113686849a1c5c74d3a06f2
Time: 2019-10-18
Author: 36920800+torzdf@users.noreply.github.com
File Name: plugins/extract/align/_base.py
Class Name: Aligner
Method Name: finalize