You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cancer_vfold <- vfold_cv(cancer_train, v = 5, strata = Class)
658
663
cancer_vfold
@@ -689,9 +694,9 @@ of the classifier's validation accuracy across the folds. You will find results
689
694
related to the accuracy in the row with `accuracy` listed under the `.metric` column.
690
695
You should consider the mean (`mean`) to be the estimated accuracy, while the standard
691
696
error (`std_err`) is a measure of how uncertain we are in the mean value. A detailed treatment of this
692
-
is beyond the scope of this chapter; but roughly, if your estimated mean is 0.88 and standard
693
-
error is 0.02, you can expect the *true* average accuracy of the
694
-
classifier to be somewhere roughly between 86% and 90% (although it may
697
+
is beyond the scope of this chapter; but roughly, if your estimated mean is `r round(filter(collect_metrics(knn_fit), .metric == "accuracy")$mean,2)` and standard
698
+
error is `r round(filter(collect_metrics(knn_fit), .metric == "accuracy")$std_err,2)`, you can expect the *true* average accuracy of the
699
+
classifier to be somewhere roughly between `r (round(filter(collect_metrics(knn_fit), .metric == "accuracy")$mean,2) - round(filter(collect_metrics(knn_fit), .metric == "accuracy")$std_err,2))*100`% and `r (round(filter(collect_metrics(knn_fit), .metric == "accuracy")$mean,2) + round(filter(collect_metrics(knn_fit), .metric == "accuracy")$std_err,2))*100`% (although it may
695
700
fall outside this range). You may ignore the other columns in the metrics data frame,
696
701
as they do not provide any additional insight.
697
702
You can also ignore the entire second row with `roc_auc` in the `.metric` column,
0 commit comments