Commit 2a5a7f85 authored by Janis Jatnieks's avatar Janis Jatnieks
Browse files

Update Surr_Train.R to fix an incorrect length of Residuals columns being...

Update Surr_Train.R to fix an incorrect length of Residuals columns being exported. The problem was caused by NAs being filled in a wrong lentgh using nrow(Fout) instead of validation dataset length as it should have been using nrow(SRes). 
parent d49649bc
...@@ -1264,7 +1264,7 @@ write_evals <- function( hist_bins = 25, write_errors=TRUE, Surrogate_performanc ...@@ -1264,7 +1264,7 @@ write_evals <- function( hist_bins = 25, write_errors=TRUE, Surrogate_performanc
## class(model_list[[1]]) ## class(model_list[[1]])
} }
else if (write_errors) { else if (write_errors) {
Residuals <<- c( Residuals, list( rep(NA, nrow(Fout) ) )) ## list encapsulates it into nested level Residuals <<- c( Residuals, list( rep(NA, nrow(SRes) ) )) ## list encapsulates it into nested level
} }
}) })
} }
......
Markdown is supported
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