question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: sklearn cannot find LeaveOneLabelOut

See original GitHub issue

On latest sklearn I get this error in master:

======================================================================
ERROR: Test time generalization decoding
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/larsoner/custombuilds/nose/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/larsoner/custombuilds/mne-python/mne/utils.py", line 807, in dec
    return function(*args, **kwargs)
  File "/home/larsoner/custombuilds/mne-python/mne/decoding/tests/test_time_gen.py", line 61, in test_generalization_across_time
    from sklearn.model_selection import (KFold, StratifiedKFold,
ImportError: cannot import name LeaveOneLabelOut

@kingjr @agramfort were we using a deprecated feature, or is this a sklearn bug?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
larsonercommented, Sep 28, 2016

Ahh, it’s now called LeaveOneGroupOut

0reactions
agramfortcommented, Oct 3, 2016

Thx!

On Mon, Oct 3, 2016 at 2:08 PM +0900, “Eric Larson” notifications@github.com wrote:

done

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version 0.18.2 — scikit-learn 1.2.0 documentation
Fix a bug where some formats of scipy.sparse matrix, and estimators with them as parameters, could not be passed to base.clone . By...
Read more >
Can't find any error in sklearn installation in ubuntu
I have installed scikit-learn using the command 'sudo apt-get install python-sklearn'. But I am getting ModuleNotFoundError.
Read more >
3.1. Cross-validation: evaluating estimator performance
The performance measure reported by k-fold cross-validation is then the average of the values computed in the loop. This approach can be computationally ......
Read more >
sklearn.model_selection.LeaveOneLabelOut
Provides train/test indices to split data according to a third-party provided label. This label information can be used to encode arbitrary domain specific ......
Read more >
Fix ModuleNotFoundError: No module named 'sklearn'
This error indicates that the scikit-learn (aka sklearn ) package was not installed ... version and this may be the reason why scikit-learn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found