Skip to content

Commit

Permalink
Delete unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cshih14 committed Dec 20, 2019
1 parent 880dcb1 commit 2285068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 2 additions & 12 deletions examples/model_selection/RF_vs_SPORF_random_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"print(__doc__)\n",
"\n",
"from sklearn.model_selection import RandomizedSearchCV\n",
"from sklearn.model_selection import GridSearchCV\n",
"\n",
"import pandas as pd\n",
"import numpy as np\n",
Expand All @@ -44,16 +43,14 @@
"from sklearn.datasets import fetch_openml\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn import metrics\n",
"from warnings import simplefilter\n",
"\n",
"from warnings import simplefilter\n",
"simplefilter(action=\"ignore\", category=FutureWarning)\n",
"from warnings import simplefilter\n",
"\n",
"simplefilter(action=\"ignore\", category=FutureWarning)\n",
"\n",
"import matplotlib\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np"
"import matplotlib.pyplot as plt"
]
},
{
Expand Down Expand Up @@ -303,13 +300,6 @@
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
4 changes: 0 additions & 4 deletions examples/model_selection/RF_vs_SPORF_random_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"""
print(__doc__)

from myconfig import api_key
from sklearn.model_selection import RandomizedSearchCV
from sklearn.model_selection import GridSearchCV

import pandas as pd
import numpy as np
Expand All @@ -27,14 +25,12 @@
from sklearn.model_selection import train_test_split
from sklearn import metrics
from warnings import simplefilter

simplefilter(action="ignore", category=FutureWarning)
from warnings import simplefilter
simplefilter(action="ignore", category=FutureWarning)

import matplotlib
import matplotlib.pyplot as plt
import numpy as np


def hyperparameter_optimization_random(X, y, *argv):
Expand Down

0 comments on commit 2285068

Please sign in to comment.