Skip to content

Commit

Permalink
upload week09 assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
LPREM committed Nov 19, 2024
1 parent 14916da commit b85ab50
Show file tree
Hide file tree
Showing 11 changed files with 1,015,511 additions and 9 deletions.
645 changes: 645 additions & 0 deletions materials/tutorial_08/tutorial_08.Rmd

Large diffs are not rendered by default.

46 changes: 41 additions & 5 deletions materials/tutorial_08/tutorial_08.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {
"deletable": false,
"editable": false,
Expand Down Expand Up @@ -101,7 +101,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {
"deletable": false,
"editable": false,
Expand All @@ -117,7 +117,28 @@
},
"tags": []
},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[1mRows: \u001b[22m\u001b[34m569\u001b[39m \u001b[1mColumns: \u001b[22m\u001b[34m32\u001b[39m\n",
"\u001b[36m──\u001b[39m \u001b[1mColumn specification\u001b[22m \u001b[36m────────────────────────────────────────────────────────\u001b[39m\n",
"\u001b[1mDelimiter:\u001b[22m \",\"\n",
"\u001b[31mchr\u001b[39m (1): target\n",
"\u001b[32mdbl\u001b[39m (31): ID, mean_radius, mean_texture, mean_perimeter, mean_area, mean_smo...\n",
"\n",
"\u001b[36mℹ\u001b[39m Use `spec()` to retrieve the full column specification for this data.\n",
"\u001b[36mℹ\u001b[39m Specify the column types or set `show_col_types = FALSE` to quiet this message.\n",
"Warning message:\n",
"“glm.fit: fitted probabilities numerically 0 or 1 occurred”\n",
"Setting levels: control = 0, case = 1\n",
"\n",
"Setting direction: controls < cases\n",
"\n"
]
}
],
"source": [
"# Run this cell before continuing\n",
"\n",
Expand Down Expand Up @@ -245,7 +266,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {
"deletable": false,
"nbgrader": {
Expand All @@ -260,7 +281,22 @@
},
"tags": []
},
"outputs": [],
"outputs": [
{
"ename": "ERROR",
"evalue": "Error: Failure has been forced\n",
"output_type": "error",
"traceback": [
"Error: Failure has been forced\nTraceback:\n",
"1. fail()",
"2. expect(FALSE, message, info = info, trace_env = trace_env)",
"3. exp_signal(exp)",
"4. withRestarts(if (expectation_broken(exp)) {\n . stop(exp)\n . } else {\n . signalCondition(exp)\n . }, continue_test = function(e) NULL)",
"5. withOneRestart(expr, restarts[[1L]])",
"6. doWithOneRestart(return(expr), restart)"
]
}
],
"source": [
"# model_matrix_X_train <- \n",
"# ...\n",
Expand Down
6 changes: 6 additions & 0 deletions materials/tutorial_09/data/click_through.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
webpage,clicks,home_page_clicks,adjusted_clicks,target_clicks
Interact,3714,1291,2423,42
Connect,1587,83,1504,53
Learn,1652,83,1569,21
Help,1717,122,1595,38
Services,1348,49,1299,45
Loading

0 comments on commit b85ab50

Please sign in to comment.