Skip to contents

Constructs a binary classification result object based on the observed and predicted values, as well as other optional parameters.

Usage

binary_classification_result(
  observed,
  predicted,
  probs,
  testind = NULL,
  test_design = NULL,
  predictor = NULL
)

Arguments

observed

A vector of observed or true values.

predicted

A vector of predicted values.

probs

A matrix of predicted probabilities, with one column per level.

testind

The row indices of the test observations (optional).

test_design

An optional design for the test data.

predictor

An optional predictor object.

Value

A binary classification result object, with the class attribute set to "binary_classification_result".

See also