R: Two Class Predictions

two_class_example {yardstick} | R Documentation

## Two Class Predictions

### Description

Two Class Predictions

### Details

These data are a test set form a model built for two classes ("Class1" and "Class2"). There are columns for the true and predicted classes and column for the probabilities for each class.

### Value

`two_class_example` | a data frame

### Examples

    data(two_class_example)
    str(two_class_example)

    # `truth` is a 2 level factor. The first level is `"Class1"`, which is the
    # "event of interest" by default in yardstick. See the Relevant Level
    # section in any classification function (such as `?pr_auc`) to see how
    # to change this.
    levels(hpc_cv$obs)

[Package yardstick version 0.0.9 Index]