8000 Update r/2021-07-21-ml-knn.rmd · johnbaums/plotly.r-docs@8dc31d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dc31d4

Browse files
Update r/2021-07-21-ml-knn.rmd
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
1 parent a0c3898 commit 8dc31d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

r/2021-07-21-ml-knn.rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ fig
206206

207207
## Multi-class prediction confidence with [`Heatmap`](https://plotly.com/r/heatmaps/)
208208

209-
It is also possible to visualize the prediction confidence of the model using [heatmaps](https://plotly.com/r/heatmaps/). In this example, you can see how to compute how confident the model is about its prediction at every point in the 2D grid. Here, we define the confidence as the difference between the highest score and the score of the other classes summed, at a certain point.
209+
It is also possible to visualize the prediction confidence of the model using [heatmaps](https://plotly.com/r/heatmaps/). In this example, you can see how to compute how confident the model is about its prediction at every point in the 2D grid. Here, we define the confidence as the difference between the highest score and the sum of the score of the other classes, at a certain point.
210210

211211
```{r}
212212
library(pracma)

0 commit comments

Comments
 (0)
0