fit.model: This specifies what to do when an object of class "model" is...

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
3
## S3 method for class 'model'
fit(mod, hp_space, hp_strategy, calibration, k = -1,
  metric = "euclidian")

Arguments

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".

Value

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

Examples

1
fit_mod <- fit(mod = new_knn_model(data=iris, design = Species ~ .), k=3, metric="euclidian")

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