Skip to content

Commit

Permalink
Merge branch 'transform-R-notebooks-to-Rmd' of https://github.com/Cau…
Browse files Browse the repository at this point in the history
…salAIBook/MetricsMLNotebooks into transform-R-notebooks-to-Rmd
  • Loading branch information
vsyrgkanis committed Jul 22, 2024
2 parents c99e311 + 86339f6 commit ab55be2
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions PM1/r-linear-model-overfitting.irnb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"languageId": "r"
}
},
"outputs": [],
"source": [
"\n",
"set.seed(123)\n",
Expand All @@ -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"
]
}
]
},
{
Expand Down

0 comments on commit ab55be2

Please sign in to comment.