fit.modelfamily: This specifies what to do when an object of class...

Description Usage Arguments Value Examples

Description

This specifies what to do when an object of class "modelfamily" is passed into the fit function. This will call the fitmodelfamily function on the modelfamily with it's corresponding parameters to fit the model family.

Usage

1
2
## S3 method for class 'modelfamily'
fit(mod, hp_space, hp_strategy, calibration, k, metric)

Arguments

mod

The model family to be fit.

hp_space

The hyperparameter space. This specifies the hyperparameters in the model family.

hp_strategy

The hyperparameter strategy. This specifies how the hyperparameters are selected when fitting the model family.

calibration

The calibration. This specifies how each model will be assessed when fitting the model family.

k

The k value. This is unused for objects of class "modelfamily".

metric

The metric. This is unused for objects of class "modelfamily".

Value

The fitted modelfamily for mod. This is of class "modelfamily".

Examples

1
2
3
4
fitted_model_fam <- fit(mod = new_knn_modelfamily(data = iris,design = Species ~ .),
hp_space = hp_space(vals = c(5,3,1), metric = c("euclidian")),
hp_strategy = "grid_search",
calibration = calibration(score = "accuracy",sampling = "bootstrap",reps = 10))

emilyklisa/mli documentation built on May 25, 2019, 5:21 p.m.