Description Usage Arguments Value Active bindings Methods
A class defines the model specifications.
1 2 3 4 5 6 |
engine |
A character scalar of model engines. |
preproc_calls |
A |
fit_params |
A |
fit_param_specs |
A |
A new Model
class object.
engine
A model engine.
fit_params
FitParams class object.
fit_param_specs
A FitParamSpecs class object.
preproc_calls
A PreprocCalls class object.
has_fit_param_specs
Wheather the model has fit_param_specs.
spec
A list
of model specifications.
data_call
A call
used to convert a data.frame
to the format
suited for the model input.
fit_call
A call
in fit routine.
pred_call
A call
in predict routine.
new()
Construct a new Model
class object.
Model$new( engine = NULL, preproc_calls = NULL, fit_params = NULL, fit_param_specs = NULL )
engine
A character scalar of model engines.
preproc_calls
A PreprocCalls class object.
fit_params
A FitParams class object. If NULL
, FitParams
with an emtpy list parameter is created.
fit_param_specs
A FitParamSpecs class object. If NULL
,
default specs is used. (If defined by the pacakge)
A new Model
class object
print()
Print object.
Model$print()
get_fit_call_by_key()
Get a model's fit call by a fit_params key.
Model$get_fit_call_by_key(fit_param_key = NULL)
fit_param_key
A character or integer scalar of the fit_params keys.
A call of the model fit.
get_fit_call()
Get a model's fit call by a fit_param.
Model$get_fit_call(fit_param = NULL)
fit_param
A list of fit parameters.
A call of the model fit.
clone()
The objects of this class are cloneable with this method.
Model$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.