9302d6f56cb836b95e357ed533a3d3aaed4f4016,pyriemann/tangentspace.py,FGDA,fit_transform,#FGDA#Any#Any#,58
Before Change
return cov
def fit_transform(self,X,y=None):
self.classes= numpy.unique(y)
self._lda = LDA(n_components=len(self.classes)-1,solver="lsqr", shrinkage="auto")
ts = self._ts.fit_transform(X)
self._lda.fit(ts,y)
W = self._lda.coef_
self._W = numpy.dot(numpy.dot(W.T,numpy.linalg.pinv(numpy.dot(W,W.T))),W)
ts = numpy.dot(ts,self._W)
cov = self._ts.inverse_transform(ts)
return cov
After Change
def fit_transform(self,X,y=None):
ts = self._fit_lda(X,y)
return self._retro_project(ts)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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_transform
Project Name: IndicoDataSolutions/Enso
Commit Name: 105b422e116c785ef52fd84ce24485514b182859
Time: 2020-03-17
Author: benlt@hotmail.co.uk
File Name: enso/experiment/rationalized.py
Class Name: RationalizedGridSearch
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
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