Skip to content

Commit 293a2d0

Browse files
authored
Merge pull request #43 from sharonwoo/master
Update CoNLL2002.ipynb and test file to reflect new sklearn API
2 parents 7ada919 + ba991aa commit 293a2d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/CoNLL2002.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"import sklearn\n",
2424
"import scipy.stats\n",
2525
"from sklearn.metrics import make_scorer\n",
26-
"from sklearn.cross_validation import cross_val_score\n",
27-
"from sklearn.grid_search import RandomizedSearchCV\n",
26+
"from sklearn.model_selection import cross_val_score\n",
27+
"from sklearn.model_selection import RandomizedSearchCV\n",
2828
"\n",
2929
"import sklearn_crfsuite\n",
3030
"from sklearn_crfsuite import scorers\n",
@@ -799,4 +799,4 @@
799799
},
800800
"nbformat": 4,
801801
"nbformat_minor": 0
802-
}
802+
}

tests/test_crf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pickle
44

55
import pytest
6-
from sklearn.cross_validation import cross_val_score
6+
from sklearn.model_selection import cross_val_score
77

88
from sklearn_crfsuite import CRF
99

0 commit comments

Comments
 (0)