-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter bank classes #467
base: develop
Are you sure you want to change the base?
Filter bank classes #467
Conversation
…into filter_bank_classes
…into filter_bank_classes
…into filter_bank_classes
…into filter_bank_classes
…into filter_bank_classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Sara, I think you should use the class NumpyDocstringInheritanceInitMeta
(see comment). If it works, print(MotorImagery.__doc__)
should display all the parameters.
And why did you change Parameters to Attributes?
Otherwise, the rest looks good to me!
moabb/paradigms/base.py
Outdated
"""Base Processing. | ||
|
||
Please use one of the child classes | ||
|
||
|
||
Parameters | ||
Attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you change “Parameters” to “Attributes”?
moabb/paradigms/base.py
Outdated
@@ -474,11 +474,11 @@ def _get_events_pipeline(self, dataset): | |||
class BaseParadigm(BaseProcessing): | |||
"""Base class for paradigms. | |||
|
|||
Parameters | |||
Attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
moabb/paradigms/motor_imagery.py
Outdated
|
||
Motor imagery paradigm with only one bandpass filter (default 8 to 32 Hz) | ||
Attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
moabb/paradigms/motor_imagery.py
Outdated
|
||
class FilterBankMotorImagery(FilterBank): | ||
"""Filter bank n-class motor imagery. | ||
Attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
moabb/paradigms/motor_imagery.py
Outdated
|
||
Parameters | ||
Attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Change NumpyDocstringInheritanceMeta to NumpyDocstringInheritanceInitMeta class Co-authored-by: PierreGtch <[email protected]>
Change NumpyDocstringInheritanceMeta to NumpyDocstringInheritanceInitMeta class 2 Co-authored-by: PierreGtch <[email protected]>
Thank you for the review, @PierreGtch ! I've changed 'Parameters' to 'Attributes' as I thought that we use 'Attributes' for class variables and 'Parameters' for methods, but I can revert it to be in accordance with other docstrings. |
class MotorImagery(SinglePass): | ||
"""N-class motor imagery. | ||
|
||
Metric is 'roc-auc' if 2 classes and 'accuracy' if more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line should stay in the docstring
@Sara04 Is this PR ready or you wanted to change other things? I can fix the errors if you want |
Hey @PierreGtch , thank you! I will check if there is something more to change. |
Hello,
This PR: