Skip to content

Commit d4f1e6f

Browse files
fixed text after 3d fig in classification 1
1 parent 26181f7 commit d4f1e6f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

classification1.Rmd

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ Based on $K=5$ nearest neighbors with these three predictors we would classify t
568568
Figure \@ref(fig:05-more) shows what the data look like when we visualize them
569569
as a 3-dimensional scatter with lines from the new observation to its five nearest neighbors.
570570

571-
```{r 05-more, echo = FALSE, message = FALSE, fig.cap = "3D scatter plot of the standardized symmetry, concavity, and perimeter variables.", fig.retina=2, out.width="80%"}
571+
```{r 05-more, echo = FALSE, message = FALSE, fig.cap = "3D scatter plot of the standardized symmetry, concavity, and perimeter variables. Note that in general we recommend against using 3D visualizations; here we show the data in 3D only to illustrate what higher dimensions and nearest neighbors look like, for learning purposes.", fig.retina=2, out.width="80%"}
572572
attrs <- c("Perimeter", "Concavity", "Symmetry")
573573
574574
# create new scaled obs and get NNs
@@ -641,16 +641,6 @@ if(!is_latex_output()){
641641
}
642642
```
643643

644-
645-
```{r, eval=knitr::is_html_output(), echo=FALSE}
646-
cat('Click and drag the plot above to rotate it, and scroll to zoom.')
647-
```
648-
649-
*Note that in
650-
general we recommend against using 3D visualizations; here we show the data in
651-
3D only to illustrate what "higher dimensions" and "nearest neighbors" look like,
652-
for learning purposes.*
653-
654644
### Summary of $K$-nearest neighbors algorithm
655645

656646
In order to classify a new observation using a $K$-nearest neighbor classifier, we have to:

0 commit comments

Comments
 (0)