validate_classifier: Validates the classifier specified from the 'caret' package

Description Usage Arguments Value Examples

View source: R/helpers.r

Description

We ensure that the specified classifier is a valid classifier in the caret package.

Usage

1
validate_classifier(classifier, posterior_prob = FALSE)

Arguments

classifier

string that contains the supervised classifier as given in the caret package.

posterior_prob

Are posterior probabilities required? If so, set to TRUE. By default, set to FALSE.

Value

TRUE invisibly if no errors occur.

Examples

1
2
validate_classifier('lda')
validate_classifier('What else floats? ... Very small rocks. ... Gravy.')

ramhiser/activelearning documentation built on May 26, 2019, 10:06 p.m.