Skip to content
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

New sklearn enabling changes #401

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ sphinx_rtd_theme
ipython
scipy
numpy > 1.9.0
scikit-learn >= 0.18
scikit-learn >= 0.20
typing
2 changes: 1 addition & 1 deletion eli5/base_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def attrs(class_):
if method in class_.__dict__:
# Allow to redefine a special method (or else attr.s will do it)
attrs_kwargs[kw_name] = False
init_args = inspect.getargspec(class_.__init__)
init_args = inspect.getfullargspec(class_.__init__)
defaults_shift = len(init_args.args) - len(init_args.defaults or []) - 1
these = {}
for idx, arg in enumerate(init_args.args[1:]):
Expand Down
2 changes: 1 addition & 1 deletion eli5/sklearn/permutation_importance.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
clone,
is_classifier
)
from sklearn.metrics.scorer import check_scoring
from sklearn.metrics import check_scoring

from eli5.permutation_importance import get_score_importances
from eli5.sklearn.utils import pandas_available
Expand Down
2 changes: 1 addition & 1 deletion eli5/sklearn/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np
from sklearn.pipeline import Pipeline, FeatureUnion
from sklearn.feature_selection.base import SelectorMixin
from sklearn.feature_selection import SelectorMixin

from sklearn.preprocessing import (
MinMaxScaler,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy >= 1.9.0
scipy
singledispatch >= 3.4.0.3
scikit-learn >= 0.18
scikit-learn >= 0.20
attrs > 16.0.0
jinja2
pip >= 8.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_long_description():
'numpy >= 1.9.0',
'scipy',
'six',
'scikit-learn >= 0.18',
'scikit-learn >= 0.20',
'graphviz',
'tabulate>=0.7.7',
],
Expand Down