binary_classification_result: Classification results for binary outcome

View source: R/mvpa_result.R

binary_classification_resultR Documentation

Classification results for binary outcome

Description

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

Other classification_result: classification_result(), multiway_classification_result(), regression_result()


bbuchsbaum/rMVPA documentation built on April 23, 2024, 7:35 a.m.