:exclamation: This is a read-only mirror of the CRAN R package repository. spmodel — Spatial Statistical Modeling and Prediction. Homepage: https://usepa.github.io/spmodel/ Report bugs for this package: https://github.com/USEPA/spmodel/issues
Hi.
I was running a model, the training dataset (sf object) contains 62.770 observations. I used:
mod_0 <- splm( formula_general, data = training(split), spcov_type = "exponential", partition_factor = ~ clean_uso, local = pred_list )
where pred.list is:
pred_list <- list( parallel = TRUE, ncores = 4 )
Training the model took around 15 minutes.
When using predict() (or augment())
The code throws the following error:
pred.mod_0 <- augment( mod_0, newdata = testing(split), local = TRUE ) Error in x$terms %||% attr(x, "terms") %||% stop("no terms component nor attribute") : no terms component nor attribute
Hi. I was running a model, the training dataset (sf object) contains 62.770 observations. I used:
mod_0 <- splm( formula_general, data = training(split), spcov_type = "exponential", partition_factor = ~ clean_uso, local = pred_list )
where pred.list is:
pred_list <- list( parallel = TRUE, ncores = 4 )
Training the model took around 15 minutes. When using
predict()
(oraugment()
)The code throws the following error:
pred.mod_0 <- augment( mod_0, newdata = testing(split), local = TRUE ) Error in x$terms %||% attr(x, "terms") %||% stop("no terms component nor attribute") : no terms component nor attribute
Or when setting local to
pred_list
` pred.mod_0 <- augment( mod_0, newdata = testing(split), local = pred_list )
Error in checkForRemoteErrors(val) : 4 nodes produced errors; first error: no terms component nor attribute `
Could you please provide help?