trainANN <- function(data,
size,
decay = 0,
rang = 0.7,
maxit = 100) {
result <- SDMmodel(data = data)
x <- data@data
p <- data@pa
utils::capture.output(model <- nnet::nnet(x = x,
y = p,
size = size,
decay = decay,
rang = rang,
maxit = maxit))
model_object <- ANN(size = size,
decay = decay,
rang = rang,
maxit = maxit,
model = model)
result@model <- model_object
result
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.