Skip to content

Commit 255fb80

Browse files
committed
removing f-strings
1 parent e606964 commit 255fb80

File tree

5 files changed

+71
-883
lines changed

5 files changed

+71
-883
lines changed

Notebooks/Model Evaluation.ipynb

+30-8
Original file line numberDiff line numberDiff line change
@@ -252,24 +252,46 @@
252252
},
253253
{
254254
"cell_type": "code",
255-
"execution_count": 24,
255+
"execution_count": 32,
256256
"metadata": {},
257257
"outputs": [
258258
{
259259
"name": "stdout",
260260
"output_type": "stream",
261261
"text": [
262-
"Logistic Regression: 167.08\n",
263-
"LSTM 1: 170.38\n",
264-
"LSTM 3: 161.46\n"
262+
"Logistic Regression: 0.92\n",
263+
"LSTM 1: 0.94\n",
264+
"LSTM 3: 0.93\n"
265265
]
266266
}
267267
],
268268
"source": [
269-
"from sklearn.metrics import auc\n",
270-
"print(f'Logistic Regression: {auc(y, p1):0.2f}')\n",
271-
"print(f'LSTM 1: {auc(y, p2):0.2f}')\n",
272-
"print(f'LSTM 3: {auc(y, p3):0.2f}')"
269+
"from sklearn.metrics import roc_auc_score\n",
270+
"print(f'Logistic Regression: {roc_auc_score(y, p1):0.2f}')\n",
271+
"print(f'LSTM 1: {roc_auc_score(y, p2):0.2f}')\n",
272+
"print(f'LSTM 3: {roc_auc_score(y, p3):0.2f}')"
273+
]
274+
},
275+
{
276+
"cell_type": "code",
277+
"execution_count": 37,
278+
"metadata": {},
279+
"outputs": [
280+
{
281+
"name": "stdout",
282+
"output_type": "stream",
283+
"text": [
284+
"Logistic Regression: 0.86\n",
285+
"LSTM 1: 0.87\n",
286+
"LSTM 3: 0.88\n"
287+
]
288+
}
289+
],
290+
"source": [
291+
"from sklearn.metrics import accuracy_score\n",
292+
"print(f'Logistic Regression: {accuracy_score(y, p1>0.6):0.2f}')\n",
293+
"print(f'LSTM 1: {accuracy_score(y, p2>0.6):0.2f}')\n",
294+
"print(f'LSTM 3: {accuracy_score(y, p3>0.6):0.2f}')"
273295
]
274296
},
275297
{

0 commit comments

Comments
 (0)