Commit 25f3bef5 authored by Romulo Pereira Goncalves's avatar Romulo Pereira Goncalves
Browse files

Uncomment code.

parent e7a8c2f2
...@@ -55,10 +55,10 @@ model_opt_r <- function(k, ...@@ -55,10 +55,10 @@ model_opt_r <- function(k,
if (sample_type == "regular") { if (sample_type == "regular") {
pbt <- raster::sampleRegular(rast, size = sample_size, sp = T) pbt <- raster::sampleRegular(rast, size = sample_size, sp = T)
} }
#f <- which(is.na(pbt@data[1])) f <- which(is.na(pbt@data[1]))
#if (length(f) != 0) { if (length(f) != 0) {
# pbt <- pbt[-f,] pbt <- pbt[-f,]
#} }
set.seed(seed2[k]) set.seed(seed2[k])
classes <- classes <-
as.factor(sample(c(1:2), size = nrow(pbt), replace = T)) as.factor(sample(c(1:2), size = nrow(pbt), replace = T))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment