Create Model Type Object Definitions
model_type.RdDeclares a model type the Feature Selection framework. There are currently 3 model type options:
Logistic Regression Models (lr)
Linear Regression Models (lm)
Naive Bayes Models (nb)
Typically these functions can be called with their defaults,
especially if called upon a tr_data class object (see libml).
Usage
model_type_lr(response = "Response")
model_type_nb(response = "Response")
model_type_lm(response = "Response")Value
An object of the appropriate class according to the
model type chosen, one of: fs_lr, fs_nb, or fs_lm.
Examples
# Logistic Regression
model_type_lr()
#> ── Model: logistic regression ─────────────────────────────────────────
#> • response 'Response'
#> ───────────────────────────────────────────────────────────────────────
# Robust Parameter Naive Bayes (default)
model_type_nb()
#> ── Model: naive Bayes ─────────────────────────────────────────────────
#> • response 'Response'
#> ───────────────────────────────────────────────────────────────────────
# Linear Regression
model_type_lm()
#> ── Model: linear regression ───────────────────────────────────────────
#> • response 'Response'
#> ───────────────────────────────────────────────────────────────────────