Description Usage Arguments Value Examples
This specifies what to do when an object of class "model" is passed into the fit function. This will call the fitmodel function on the model with it's corresponding parameters to fit the model.
1 2 3 | ## S3 method for class 'model'
fit(mod, hp_space, hp_strategy, calibration, k = -1,
metric = "euclidian")
|
mod |
The model to be fit. |
hp_space |
The hyperparameter space. This is unused for objects of class "model". |
hp_strategy |
The hyperparameter strategy. This is unused for objects of class "model". |
calibration |
The calibration. This is unused for objects of class "model". |
k |
The k value for the model. Can also be any generic parameter value. Default is set to -1 which is calculated to a more sane default when passed into the fitmodel function. |
metric |
The metric to use for fitting the model. Default is set to "eculidian". |
The fitted model for mod. This is of class "model".
1 | fit_mod <- fit(mod = new_knn_model(data=iris, design = Species ~ .), k=3, metric="euclidian")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.