Description Usage Arguments Value Examples
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.
1 2 | ## S3 method for class 'modelfamily'
fit(mod, hp_space, hp_strategy, calibration, k, metric)
|
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". |
The fitted modelfamily for mod. This is of class "modelfamily".
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.