ibnummuhammad
commited on
Commit
•
9700caf
1
Parent(s):
dc9fbf8
Add penguin_binary_classification.ipynb
Browse files
penguins_binary_classification.ipynb
CHANGED
@@ -1456,6 +1456,32 @@
|
|
1456 |
"log.fit(X_train, Y_train)"
|
1457 |
]
|
1458 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1459 |
{
|
1460 |
"cell_type": "code",
|
1461 |
"execution_count": 14,
|
|
|
1456 |
"log.fit(X_train, Y_train)"
|
1457 |
]
|
1458 |
},
|
1459 |
+
{
|
1460 |
+
"cell_type": "code",
|
1461 |
+
"execution_count": 55,
|
1462 |
+
"metadata": {},
|
1463 |
+
"outputs": [
|
1464 |
+
{
|
1465 |
+
"data": {
|
1466 |
+
"text/plain": [
|
1467 |
+
"array([1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0,\n",
|
1468 |
+
" 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1,\n",
|
1469 |
+
" 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0,\n",
|
1470 |
+
" 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0,\n",
|
1471 |
+
" 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1,\n",
|
1472 |
+
" 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1,\n",
|
1473 |
+
" 0, 0, 0, 1, 0])"
|
1474 |
+
]
|
1475 |
+
},
|
1476 |
+
"execution_count": 55,
|
1477 |
+
"metadata": {},
|
1478 |
+
"output_type": "execute_result"
|
1479 |
+
}
|
1480 |
+
],
|
1481 |
+
"source": [
|
1482 |
+
"log.predict(X_test)"
|
1483 |
+
]
|
1484 |
+
},
|
1485 |
{
|
1486 |
"cell_type": "code",
|
1487 |
"execution_count": 14,
|