isClassifierAndValidate: Validate a model type

View source: R/caretPredict.R

isClassifierAndValidateR Documentation

Validate a model type

Description

Validate the model type from a train object. For classification, validates that the model can predict probabilities, and, if stacked predictions are requested, that classProbs = TRUE.

Usage

isClassifierAndValidate(object, validate_for_stacking = TRUE)

Arguments

object

a train object

validate_for_stacking

a logical indicating whether to validate the object for stacked predictions

Value

a logical. TRUE if classifier, otherwise FALSE.


caretEnsemble documentation built on Sept. 13, 2024, 1:11 a.m.