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"))

parsnip documentation built on June 24, 2024, 5:14 p.m.