mirror of
https://github.com/fenago/data-science.git
synced 2026-05-05 17:11:52 +00:00
added
This commit is contained in:
@@ -23,7 +23,10 @@
|
||||
"# import libraries\n",
|
||||
"import pandas as pd\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression"
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
"# import libraries\n",
|
||||
"import pandas as pd\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression"
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
"# import libraries\n",
|
||||
"import pandas as pd\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression"
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
"# import libraries\n",
|
||||
"import pandas as pd\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression"
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
"# import libraries\n",
|
||||
"import pandas as pd\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression"
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
"# import libraries\n",
|
||||
"import pandas as pd\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression"
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
"# import libraries\n",
|
||||
"import pandas as pd\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression"
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -25,7 +25,10 @@
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"from sklearn.metrics import roc_curve\n",
|
||||
"from sklearn.metrics import auc"
|
||||
"from sklearn.metrics import auc\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"from sklearn.metrics import roc_curve\n",
|
||||
"from sklearn.metrics import auc"
|
||||
"from sklearn.metrics import auc\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"from sklearn.model_selection import train_test_split\n",
|
||||
"from sklearn.linear_model import LinearRegression\n"
|
||||
"from sklearn.linear_model import LinearRegression\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -16,7 +16,10 @@
|
||||
"\n",
|
||||
"from sklearn.model_selection import train_test_split \n",
|
||||
"\n",
|
||||
"from sklearn.linear_model import LogisticRegression"
|
||||
"from sklearn.linear_model import LogisticRegression\n",
|
||||
"\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(\"ignore\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -202,7 +205,7 @@
|
||||
"# Plot the RoC \n",
|
||||
"# Uncomment the following block of code to see the plot\n",
|
||||
"\n",
|
||||
"'''import matplotlib.pyplot as plt \n",
|
||||
"import matplotlib.pyplot as plt \n",
|
||||
"\n",
|
||||
"%matplotlib inline \n",
|
||||
"\n",
|
||||
@@ -220,7 +223,7 @@
|
||||
"\n",
|
||||
"plt.title('Receiver Operating Characteristic') \n",
|
||||
"\n",
|
||||
"plt.show() '''"
|
||||
"plt.show()"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user