def fit(self, X, y):
"""Fit TSclassifier.
Parameters
----------
X : ndarray, shape (n_trials, n_channels, n_channels)
ndarray of SPD matrices.
y : ndarray shape (n_trials, 1)
labels corresponding to each trial.
Returns
-------
self : TSclassifier. instance
The TSclassifier. instance.
"""
ts = TangentSpace(metric=self.metric, tsupdate=self.tsupdate)
self._pipe = make_pipeline(ts, self.clf)
self._pipe.fit(X, y)
return self
classification.py 文件源码
python
阅读 33
收藏 0
点赞 0
评论 0
评论列表
文章目录