These functions allow converting models that inherit from the
tskrr
and
tskrrTune
class into each other,
keeping track of whether the model is homogeneous or heterogeneous.
The dots argument allows specifying values for possible extra slots
when converting from tskrr
to tskrrTune
.
More information on these slots can be found
on the help page of tskrrTune
.
These functions are not exported.
as_tuned(x, ...)as_tskrr(x, ...)
# S4 method for tskrrHomogeneous
as_tuned(x, ...)
# S4 method for tskrrHeterogeneous
as_tuned(x, ...)
# S4 method for tskrrTune
as_tskrr(x)
# S4 method for tskrrImpute
as_tskrr(x)
# S4 method for tskrr
as_tskrr(x)
a model of class tskrr
values for the extra slots defined by
the class tskrrTune
For as_tuned
:
a tskrrTune
object of
the proper class (homogeneous or heterogeneous)
For as_tskrr
: an object of class
tskrrHomogeneous
or
tskrrHeterogeneous
depending
on whether the original object was homogeneous or heterogeneous.
This functions do NOT tune a model. they are used internally to make the connection between both types in the methods.