Skip to content

Commit

Permalink
Update import statements in notebooks (blue-yonder#471)
Browse files Browse the repository at this point in the history
* Update import statements to take train_test_split from model_selection instead of cross_validation

* Up scikit-learn dependancy to 0.19.0
  • Loading branch information
georgewambold authored and MaxBenChrist committed Dec 20, 2018
1 parent 2b6f57b commit 05734d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion notebooks/basic_pipeline_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"source": [
"import pandas as pd\n",
"from sklearn.pipeline import Pipeline\n",
"from sklearn.cross_validation import train_test_split\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.ensemble import RandomForestClassifier\n",
"from sklearn.metrics import classification_report\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/pipeline_with_two_datasets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"source": [
"import pandas as pd\n",
"from sklearn.pipeline import Pipeline\n",
"from sklearn.cross_validation import train_test_split\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.ensemble import RandomForestClassifier\n",
"from sklearn.metrics import classification_report\n",
"from tsfresh.examples.robot_execution_failures import download_robot_execution_failures\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/robot_failure_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"from tsfresh.utilities.dataframe_functions import impute\n",
"from tsfresh.feature_extraction import ComprehensiveFCParameters\n",
"from sklearn.tree import DecisionTreeClassifier\n",
"from sklearn.cross_validation import train_test_split\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.metrics import classification_report"
]
},
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ pandas>=0.20.3
scipy>=0.17.0
statsmodels>=0.8.0
patsy>=0.4.1
scikit-learn>=0.17.1
scikit-learn>=0.19.0
future>=0.16.0
six>=1.10.0
tqdm>=4.10.0
ipaddress>=1.0.18; python_version <= '2.7'
dask>=0.15.2
distributed>=1.18.3
distributed>=1.18.3

0 comments on commit 05734d4

Please sign in to comment.