Learn R Programming

mikropml (version 1.6.1)

check_method: Check if the method is supported. If not, throws error.

Description

Check if the method is supported. If not, throws error.

Usage

check_method(method, hyperparameters)

Arguments

method

ML method. Options: c("glmnet", "rf", "rpart2", "svmRadial", "xgbTree").

  • glmnet: linear, logistic, or multiclass regression

  • rf: random forest

  • rpart2: decision tree

  • svmRadial: support vector machine

  • xgbTree: xgboost

hyperparameters

Dataframe of hyperparameters (default NULL; sensible defaults will be chosen automatically).

Author

Kelly Sovacool, sovacool@umich.edu

Examples

Run this code
if (FALSE) {
check_method("rf")
}

Run the code above in your browser using DataLab