<std::runtime_error/C++Error/error/condition>
Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.

test_that("unfold returns expected object structure", {
fit <- unfold(ts_set, horizon = 2, epochs = 2, batch_size = 8, verbose = FALSE)
test_that("predictive functions exist and are callable", {
# gmix() closures: at least they should be functions
test_that("unfold is reproducible with fixed seed (within tolerance)", {
fit1 <- unfold(ts_set[, 1, drop = FALSE], horizon = 2, seed = 123, epochs = 2, batch_size = 8, verbose = FALSE)
fit2 <- unfold(ts_set[, 1, drop = FALSE], horizon = 2, seed = 123, epochs = 2,  batch_size = 8, verbose = FALSE)
# Compare numeric histories within tolerance

"unfold returns expected object structure"
"predictive functions exist and are callable"
"unfold is reproducible with fixed seed (within tolerance)"

unfold returns expected object structure

predictive functions exist and are callable

unfold is reproducible with fixed seed (within tolerance)