yardstick_remove_missing: Developer function for handling missing values in new metrics

View source: R/missings.R

yardstick_remove_missingR Documentation

Developer function for handling missing values in new metrics

Description

yardstick_remove_missing(), and yardstick_any_missing() are useful alongside the metric-summarizers functions for implementing new custom metrics. yardstick_remove_missing() removes any observations that contains missing values across, truth, estimate and case_weights. yardstick_any_missing() returns FALSE if there is any missing values in the inputs.

Usage

yardstick_remove_missing(truth, estimate, case_weights)

yardstick_any_missing(truth, estimate, case_weights)

Arguments

truth, estimate

Vectors of the same length.

case_weights

A vector of the same length as truth and estimate, or NULL if case weights are not being used.

See Also

metric-summarizers


yardstick documentation built on April 21, 2023, 9:08 a.m.