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

View source: R/checks.R

check_methodR Documentation

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(s)

Kelly Sovacool, sovacool@umich.edu

Examples

## Not run: 
check_method("rf")

## End(Not run)

SchlossLab/mikropml documentation built on Aug. 24, 2023, 9:51 p.m.