Skip to content

Commit 6765dd3

Browse files
committed
fixed two more figs in classification2
1 parent a6837a2 commit 6765dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classification2.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ a balance between the two. You can see these two effects in Figure
880880
\@ref(fig:06-decision-grid-K), which shows how the classifier changes as
881881
we set the number of neighbors $K$ to 1, 7, 20, and 300.
882882

883-
```{r 06-decision-grid-K, echo = FALSE, message = FALSE, fig.height = 10, fig.width = 10, fig.cap = "Effect of K in overfitting and underfitting."}
883+
```{r 06-decision-grid-K, echo = FALSE, message = FALSE, fig.height = 10, fig.width = 10, fig.pos = "H", out.extra="", fig.cap = "Effect of K in overfitting and underfitting."}
884884
ks <- c(1, 7, 20, 300)
885885
plots <- list()
886886
@@ -948,7 +948,7 @@ can tune the classifier (e.g., select the number of neighbors $K$ in $K$-NN)
948948
by maximizing estimated accuracy via cross-validation. The overall
949949
process is summarized in Figure \@ref(fig:06-overview).
950950

951-
```{r 06-overview, echo = FALSE, message = FALSE, warning = FALSE, fig.cap = "Overview of KNN classification.", fig.retina = 2, out.width = "100%"}
951+
```{r 06-overview, echo = FALSE, message = FALSE, warning = FALSE, fig.pos = "H", out.extra="", fig.cap = "Overview of KNN classification.", fig.retina = 2, out.width = "100%"}
952952
knitr::include_graphics("img/train-test-overview.jpeg")
953953
```
954954

0 commit comments

Comments
 (0)