Skip to content

Commit

Permalink
Correct predictions for EMci (remove round)
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaGueguen committed Apr 2, 2024
1 parent a064345 commit 5c2f6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/biomod2_classes_5.R
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ setMethod('predict2', signature(object = 'EMci_biomod2_model', newdata = "data.f
on_0_1000 <- args$on_0_1000

if (is.null(mean_prediction)) {
mean_prediction <- round(rowMeans(newdata, na.rm = na.rm))
mean_prediction <- rowMeans(newdata, na.rm = na.rm)
}
if (is.null(sd_prediction)) {
sd_prediction <- apply(newdata, 1, sd, na.rm = na.rm)
Expand Down

0 comments on commit 5c2f6c4

Please sign in to comment.