Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Habitat Sampler
HabitatSampler
Commits
8cea425c
Commit
8cea425c
authored
Sep 14, 2021
by
Romulo Pereira Goncalves
Browse files
Since we have removed all the NaNs from the raster, we do not need to omit the NaNs
parent
59f66cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
R-package/R/model_opt.r
View file @
8cea425c
...
...
@@ -71,7 +71,6 @@ model_opt_r <- function(k,
if
(
model
==
"rf"
)
{
model1
<-
randomForest
::
randomForest
(
as.factor
(
classes
)
~
.
,
na.action
=
na.omit
,
data
=
data
,
mtry
=
mtry
)
if
(
is.na
(
mean
(
model1
$
err.rate
[,
1
]))
==
TRUE
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment