Skip to content

Commit

Permalink
Merge pull request #43 from sharonwoo/master
Browse files Browse the repository at this point in the history
Update CoNLL2002.ipynb and test file to reflect new sklearn API
  • Loading branch information
kmike committed Dec 5, 2019
2 parents 7ada919 + ba991aa commit 293a2d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/CoNLL2002.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"import sklearn\n",
"import scipy.stats\n",
"from sklearn.metrics import make_scorer\n",
"from sklearn.cross_validation import cross_val_score\n",
"from sklearn.grid_search import RandomizedSearchCV\n",
"from sklearn.model_selection import cross_val_score\n",
"from sklearn.model_selection import RandomizedSearchCV\n",
"\n",
"import sklearn_crfsuite\n",
"from sklearn_crfsuite import scorers\n",
Expand Down Expand Up @@ -799,4 +799,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
2 changes: 1 addition & 1 deletion tests/test_crf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pickle

import pytest
from sklearn.cross_validation import cross_val_score
from sklearn.model_selection import cross_val_score

from sklearn_crfsuite import CRF

Expand Down

0 comments on commit 293a2d0

Please sign in to comment.