Skip to content

Commit

Permalink
Merge pull request #561 from UBC-DSCI/python-synch-bestparams-fit
Browse files Browse the repository at this point in the history
Python synchronization with best params, fit edits
  • Loading branch information
trevorcampbell authored Nov 13, 2023
2 parents fbcf2db + ad273ca commit bb240f1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/classification2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,8 @@ In the metrics data frame, we filtered the `.metric` column since we are
interested in the `accuracy` row. Other entries involve other metrics that
are beyond the scope of this book. Looking at the value of the `.estimate` variable
shows that the estimated accuracy of the classifier on the test data
was `r round(100*cancer_acc_1$.estimate, 0)`%.

We can also look at the *confusion matrix* for the classifier, which shows
the table of predicted labels and correct labels, using the `conf_mat` function:
was `r round(100*cancer_acc_1$.estimate, 0)`%. We can also look at the *confusion matrix* for
the classifier using the `conf_mat` function.

```{r 06-confusionmat}
confusion <- cancer_test_predictions |>
Expand Down

0 comments on commit bb240f1

Please sign in to comment.