Skip to content

cannot import module BaggingClassifier #22

@avilella

Description

@avilella

I tried to install scikit-mdr on an Ubuntu 14.04 Linux via pip install but got this error below. To make sure it wasn't a versions issue with scikit-learn, I did a sudo pip install -U scikit-learn, which completed successfully, then tried to load MDR on a python console. See below.

Any ideas?

Successfully installed scikit-learn
Cleaning up...
avilella@ubuntu14:~$ 
avilella@ubuntu14:~$ python
Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mdr import MDR
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/mdr/__init__.py", line 23, in <module>
    from .mdr_ensemble import MDREnsemble
  File "/usr/local/lib/python2.7/dist-packages/mdr/mdr_ensemble.py", line 26, in <module>
    from sklearn.ensemble import BaggingClassifier
ImportError: cannot import name BaggingClassifier

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions