我需要使用Dissever软件包对卫星图像进行缩小处理,但是由于check_dims(x = x,y = y)中的错误,我不能这样做:nrow(x)> 1不是TRUE
.default_control_init <- caret::trainControl(
method = 'cv',
number = 5#,
#verboseIter = TRUE)
.default_control_iter <- caret::trainControl(method = 'rf')
.create_tune_grid <- function(model, tune_length) {
params <- modelLookup(model)$parameter
grid <- expand.grid(lapply(1:length(params), function(x) 1:tune_length))
names(grid) <- as.character(params)
grid}
data(edgeroi)
library(raster)
plot(bio) # coarse resolution layer
plot(stack1) # fine resolution predictors
rf_cub <- dissever(
coarse = bio,
fine = stack1,
method = "rf",
min_iter = 1, max_iter = 10,
p = 0.05)