Skip to contents

Load a trained model from disk

Usage

morie_ml_load(path)

Arguments

path

File path written by morie_ml_save().

Value

The restored morie_ml_fit.

Examples

m <- morie_ml_train(morie_ml_model("linear", "gd"),
                    mtcars[c("hp", "wt")], mtcars$mpg)
f <- morie_ml_save(m, file.path(tempdir(), "model"))
identical(class(morie_ml_load(f)), class(m))
#> [1] TRUE