From b92e8fd6e957077ad7f318de28031762835f8b15 Mon Sep 17 00:00:00 2001 From: Morten Hjorth-Jensen Date: Wed, 16 Oct 2024 13:56:19 +0200 Subject: [PATCH] update --- doc/pub/week42/ipynb/additionweek42.ipynb | 22 +++++++++++++++++++--- doc/pub/week42/ipynb/exercisesweek42.ipynb | 6 +++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/doc/pub/week42/ipynb/additionweek42.ipynb b/doc/pub/week42/ipynb/additionweek42.ipynb index 3d434a400..2c25b9eca 100644 --- a/doc/pub/week42/ipynb/additionweek42.ipynb +++ b/doc/pub/week42/ipynb/additionweek42.ipynb @@ -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": { diff --git a/doc/pub/week42/ipynb/exercisesweek42.ipynb b/doc/pub/week42/ipynb/exercisesweek42.ipynb index c24e52ac4..4eb24445d 100644 --- a/doc/pub/week42/ipynb/exercisesweek42.ipynb +++ b/doc/pub/week42/ipynb/exercisesweek42.ipynb @@ -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" ] }, {