Skip to content

Commit bb57940

Browse files
committed
fixed fig whitespace for classification1
1 parent 3a6bfe8 commit bb57940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classification1.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ You will see in the `mutate` \index{mutate} step below, we compute the straight-
455455
distance using the formula above: we square the differences between the two observations' perimeter
456456
and concavity coordinates, add the squared differences, and then take the square root.
457457

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."}
459459
perim_concav <- bind_rows(cancer,
460460
tibble(Perimeter = new_point[1],
461461
Concavity = new_point[2],
@@ -1255,7 +1255,7 @@ classifier would make. We can see that the decision is more reasonable; when the
12551255
to those labeled malignant, the classifier predicts a malignant tumor, and vice versa when they are
12561256
closer to the benign tumor observations.
12571257

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."}
12591259
knn_spec <- nearest_neighbor(weight_func = "rectangular", neighbors = 7) |>
12601260
set_engine("kknn") |>
12611261
set_mode("classification")

0 commit comments

Comments
 (0)