Skip to content

Commit

Permalink
Update train.R
Browse files Browse the repository at this point in the history
Changed 0 to NA by default here
  • Loading branch information
Martin-Jung authored Oct 29, 2024
1 parent 7ca9bc0 commit 7a58753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/train.R
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ methods::setMethod(
o <- terra::mask(out$get_data("prediction"), layer)
} else {
# Default! Leaves rest of background to 0
o <- terra::mask(out$get_data("prediction"), layer, updatevalue = 0)
o <- terra::mask(out$get_data("prediction"), layer, updatevalue = NA)
}
out <- out$set_data("prediction", o)
try({ rm(layer, o) })
Expand Down

0 comments on commit 7a58753

Please sign in to comment.