-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
BUG: Refactor LinearModel #13361
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
Merged
Merged
BUG: Refactor LinearModel #13361
Changes from 20 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3ad8c28
initial improvements
Genuster a3479cf
clone(model) instead of modifying it, change default model, add depre…
Genuster 09dc04f
Merge remote-tracking branch 'upstream/main' into linearmodel
Genuster 9346f72
make linearmodel work with onevsrestclassifier
Genuster 4e2bcbd
few last fixes
Genuster 568f0ea
add futurewarning test
Genuster f138d13
add short docstring for predict method
Genuster 838153b
add returns to the predict docstring
Genuster b7d4c0f
use model.__sklearn__tags__ instead of get_tags
Genuster 9f2354f
use mne's fix for validate_data
Genuster 74177d2
move predict and classes_ back to the wrapped attrs
Genuster 222ed16
add fit_transform test
Genuster d7ca9ff
__getattr__ can silently catch attribute error from filters_ property
Genuster 175f6c6
make validation compatible with sklearn<1.6
Genuster 40dec84
more old sklearn fixes
Genuster 4cfd798
Merge remote-tracking branch 'upstream/main' into linearmodel
Genuster 973c898
undo fit check from filters property
Genuster 5e34bd0
add changelog entry
Genuster 452d98b
fix typo in changelog
Genuster f6b8079
Merge branch 'main' into linearmodel
Genuster 73357a1
undo api changes
Genuster dd68588
another tiny undo
Genuster 8160516
Merge branch 'main' into linearmodel
Genuster 9397f4e
Merge remote-tracking branch 'upstream/main' into linearmodel
Genuster a088332
TST: All examples [circle full]
Genuster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Starting with MNE-Python v1.13, ``model`` parameter of :class:`mne.decoding.LinearModel` | ||
will not be modified, use ``model_`` attribute to access the fitted model. | ||
In addition, the default ``None`` for ``model`` will not automatically set | ||
:class:`sklearn.linear_model.LogisticRegression`, it will need to be provided explicitly. | ||
The ``model`` is expected to be a supervised predictor, i.e. classifier or regressor | ||
(or :class:`sklearn.multiclass.OneVsRestClassifier`), otherwise an error will be raised, | ||
by `Gennadiy Belonosov`_. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.