From 86339f60040b6f9eeee2367440abaae0afaa2893 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 22 Jul 2024 07:18:27 +0000 Subject: [PATCH] Strip outputs from .ipynb files [skip ci] --- PM1/python-linear-model-overfitting.ipynb | 22 +++------------------- PM1/r-linear-model-overfitting.irnb | 16 +--------------- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/PM1/python-linear-model-overfitting.ipynb b/PM1/python-linear-model-overfitting.ipynb index c337e415..424560c0 100644 --- a/PM1/python-linear-model-overfitting.ipynb +++ b/PM1/python-linear-model-overfitting.ipynb @@ -21,7 +21,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": { "id": "YTaOmenI7TfT" }, @@ -44,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": { "id": "C57WYtYM7OL0", "papermill": { @@ -56,23 +56,7 @@ }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "p/n is: 1.0\n", - "R^2 is 1.0\n", - "Adjusted R^2 is nan\n", - "p/n is: 0.5\n", - "R^2 is 0.5232392347513539\n", - "Adjusted R^2 is 0.04647846950270784\n", - "p/n is: 0.05\n", - "R^2 is 0.05610356497156044\n", - "Adjusted R^2 is 0.006424805233221531\n" - ] - } - ], + "outputs": [], "source": [ "regression_stats(1000, 1000)\n", "regression_stats(1000, 500)\n", diff --git a/PM1/r-linear-model-overfitting.irnb b/PM1/r-linear-model-overfitting.irnb index f1355cfe..60d7aafc 100644 --- a/PM1/r-linear-model-overfitting.irnb +++ b/PM1/r-linear-model-overfitting.irnb @@ -29,6 +29,7 @@ "languageId": "r" } }, + "outputs": [], "source": [ "\n", "set.seed(123)\n", @@ -44,21 +45,6 @@ "print(summary(lm(y ~ X))$r.squared)\n", "print(\"Adjusted R2 is\")\n", "print(summary(lm(y ~ X))$adj.r.squared)\n" - ], - "execution_count": 5, - "outputs": [ - { - "output_type": "stream", - "name": "stdout", - "text": [ - "[1] \"p/n is\"\n", - "[1] 1\n", - "[1] \"R2 is\"\n", - "[1] 1\n", - "[1] \"Adjusted R2 is\"\n", - "[1] NaN\n" - ] - } ] }, {