case_weights_allowed: Determine if case weights are used

View source: R/case_weights.R

case_weights_allowedR Documentation

Determine if case weights are used

Description

Not all modeling engines can incorporate case weights into their calculations. This function can determine whether they can be used.

Usage

case_weights_allowed(spec)

Arguments

spec

A parsnip model specification.

Value

A single logical.

Examples

case_weights_allowed(linear_reg())
case_weights_allowed(linear_reg(engine = "keras"))

tidymodels/parsnip documentation built on April 12, 2024, 2:14 a.m.