You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: classification1.Rmd
+14-9Lines changed: 14 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -455,7 +455,7 @@ You will see in the `mutate` \index{mutate} step below, we compute the straight-
455
455
distance using the formula above: we square the differences between the two observations' perimeter
456
456
and concavity coordinates, add the squared differences, and then take the square root.
457
457
458
-
```{r 05-multiknn-1, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.cap="Scatter plot of concavity versus perimeter with new observation represented as a red diamond."}
458
+
```{r 05-multiknn-1, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.pos = "H", out.extra="", fig.cap="Scatter plot of concavity versus perimeter with new observation represented as a red diamond."}
459
459
perim_concav <- bind_rows(cancer,
460
460
tibble(Perimeter = new_point[1],
461
461
Concavity = new_point[2],
@@ -1096,7 +1096,7 @@ The new imbalanced data is shown in Figure \@ref(fig:05-unbalanced).
cancer |> filter(Class == "M") |> slice_head(n = 3)
@@ -1255,7 +1255,7 @@ classifier would make. We can see that the decision is more reasonable; when the
1255
1255
to those labeled malignant, the classifier predicts a malignant tumor, and vice versa when they are
1256
1256
closer to the benign tumor observations.
1257
1257
1258
-
```{r 05-upsample-plot, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.cap = "Upsampled data with background color indicating the decision of the classifier."}
1258
+
```{r 05-upsample-plot, echo = FALSE, fig.height = 3.5, fig.width = 4.5, fig.pos = "H", out.extra="", fig.cap = "Upsampled data with background color indicating the decision of the classifier."}
Practice exercises for the material covered in this chapter
1418
-
can be found in the accompanying [worksheet](https://github.com/UBC-DSCI/data-science-a-first-intro-worksheets/blob/main/worksheet_classification1/worksheet_classification1.ipynb).
1419
-
The worksheet tries to provide automated feedback
1420
-
and help guide you through the problems.
1421
-
To make sure this functionality works as intended,
1422
-
please follow the instructions for computer setup needed to run the worksheets
Practice exercises for the material covered in this chapter
1389
-
can be found in the accompanying [worksheet](https://github.com/UBC-DSCI/data-science-a-first-intro-worksheets/blob/main/worksheet_classification2/worksheet_classification2.ipynb).
1390
-
The worksheet tries to provide automated feedback
1391
-
and help guide you through the problems.
1392
-
To make sure this functionality works as intended,
1393
-
please follow the instructions for computer setup needed to run the worksheets
0 commit comments