Skip to content

Conversation

sylvchev
Copy link
Member

Use Epochs instead of numpy for CCA, TRCA and MsetCCA, fix label estimation.

self.classes_.append(i)
self.one_hot[k] = i
self.one_hot_ = {}
self.le_, self.slen_, self.freqs_ = None, None, []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these private or public attributes?
Private attributes have underscore before their names.
Otherwise, public attributes, with underscore after, must be added in docstring.

Suggested change
self.le_, self.slen_, self.freqs_ = None, None, []
self._le, self._slen, self._freqs = None, None, []

# Pick trial
X_test = X[trial_n, :, :]

for X_test in X:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for X_test in X:
for x in X:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants