9302d6f56cb836b95e357ed533a3d3aaed4f4016,pyriemann/tangentspace.py,FGDA,fit,#FGDA#,42

Before Change


        self._lda = LDA(n_components=len(self.classes)-1,solver="eigen", shrinkage="auto")
        
        ts = self._ts.fit_transform(X)
        self._lda.fit(ts,y)
        
        W = self._lda.coef_.copy()
        self._W = numpy.dot(numpy.dot(W.T,numpy.linalg.pinv(numpy.dot(W,W.T))),W)
        
    def transform(self,X):
       ts = self._ts.transform(X)

After Change


    
    def fit(self,X,y=None):
        self._fit_lda(X,y)
        return self
        
    def transform(self,X):
        ts = self._ts.transform(X)
        return self._retro_project(ts)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: alexandrebarachant/pyRiemann
Commit Name: 9302d6f56cb836b95e357ed533a3d3aaed4f4016
Time: 2015-05-16
Author: alexandre.barachant@gmail.com
File Name: pyriemann/tangentspace.py
Class Name: FGDA
Method Name: fit


Project Name: alexandrebarachant/pyRiemann
Commit Name: 9302d6f56cb836b95e357ed533a3d3aaed4f4016
Time: 2015-05-16
Author: alexandre.barachant@gmail.com
File Name: pyriemann/tangentspace.py
Class Name: FGDA
Method Name: fit_transform


Project Name: nilmtk/nilmtk
Commit Name: 19d033a92294727dec6e8ad4965e754f9ae64c5f
Time: 2015-07-04
Author: nipunb@iiitd.ac.in
File Name: nilmtk/feature_detectors/cluster.py
Class Name:
Method Name: _apply_clustering