This commit is contained in:
Morten Hjorth-Jensen
2024-10-16 13:56:19 +02:00
parent 626a7f92a2
commit b92e8fd6e9
2 changed files with 22 additions and 6 deletions
+19 -3
View File
@@ -678,7 +678,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"id": "371f0a26",
"metadata": {},
"outputs": [
@@ -867,10 +867,18 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 2,
"id": "1ce6966d",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Predictions: [1, 1, 1, 1]\n"
]
}
],
"source": [
"import numpy as np\n",
"class LogisticRegression:\n",
@@ -904,6 +912,14 @@
" predictions = model.predict(X)\n",
" print(\"Predictions:\", predictions)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "002ef0cd",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
+3 -3
View File
@@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "c6f61b09",
"metadata": {},
"outputs": [],
@@ -86,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "37f30740",
"metadata": {},
"outputs": [],
@@ -120,7 +120,7 @@
"metadata": {},
"outputs": [],
"source": [
"b1 = ..."
"b1 = np.random"
]
},
{