8000 Update r/2021-07-26-ml-roc-pr.Rmd · plotly/plotly.r-docs@2838e19 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2838e19

Browse files
Update r/2021-07-26-ml-roc-pr.Rmd
Co-authored-by: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com>
1 parent 8af9fed commit 2838e19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

r/2021-07-26-ml-roc-pr.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ pdb <- pr_curve(rdb, y, yscore)
203203
auc = roc_auc(rdb, y, yscore)
204204
auc = auc$.estimate
205205
206-
tit = paste('ROC Curve (Auc = ',toString(round(auc,2)),')',sep = '')
206+
tit = paste('ROC Curve (AUC = ',toString(round(auc,2)),')',sep = '')
207+
207208
208209
fig <- plot_ly(data = pdb ,x = ~recall, y = ~precision, type = 'scatter', mode = 'lines', fill = 'tozeroy') %>%
209210
add_segments(x = 0, xend = 1, y = 1, yend = 0, line = list(dash = "dash", color = 'black'),inherit = FALSE, showlegend = FALSE) %>%

0 commit comments

Comments
 (0)
0