From bccceb4b30d437380989230a046f96d4fb14052b Mon Sep 17 00:00:00 2001 From: vsyrgkanis Date: Sat, 20 Jul 2024 08:27:01 -0700 Subject: [PATCH] Testing PR continuous integration --- .../check-and-transform-R-notebooks.yml | 4 ++-- .github/workflows/python-notebooks.yml | 4 ++-- PM1/python-linear-model-overfitting.ipynb | 22 ++++++++++++++++--- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-and-transform-R-notebooks.yml b/.github/workflows/check-and-transform-R-notebooks.yml index 801f0c3c..dc9b199d 100644 --- a/.github/workflows/check-and-transform-R-notebooks.yml +++ b/.github/workflows/check-and-transform-R-notebooks.yml @@ -223,7 +223,7 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' git pull git add ${{ matrix.directory }}/*.irnb ${{ matrix.directory }}/*.Rmd - git commit -m 'Strip outputs from .irnb, convert to .Rmd, lint .Rmd files, and execute .R files in ${{ matrix.directory }}' - git push + git commit -m 'Strip outputs from .irnb, convert to .Rmd, lint .Rmd files, and execute .R files in ${{ matrix.directory }} [skip ci]' + git push --force-with-lease env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/python-notebooks.yml b/.github/workflows/python-notebooks.yml index d5665acd..c39f90f1 100644 --- a/.github/workflows/python-notebooks.yml +++ b/.github/workflows/python-notebooks.yml @@ -198,7 +198,7 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' git pull git add ${{ matrix.directory }}/*.ipynb - git commit -m 'Strip outputs from .ipynb files in ${{ matrix.directory }}' - git push + git commit -m 'Strip outputs from .ipynb files in ${{ matrix.directory }} [skip ci]' + git push --force-with-lease env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/PM1/python-linear-model-overfitting.ipynb b/PM1/python-linear-model-overfitting.ipynb index 424560c0..c57c8825 100644 --- a/PM1/python-linear-model-overfitting.ipynb +++ b/PM1/python-linear-model-overfitting.ipynb @@ -21,7 +21,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": { "id": "YTaOmenI7TfT" }, @@ -44,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": { "id": "C57WYtYM7OL0", "papermill": { @@ -56,7 +56,23 @@ }, "tags": [] }, - "outputs": [], + "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" + ] + } + ], "source": [ "regression_stats(1000, 1000)\n", "regression_stats(1000, 500)\n",