avNNet(x, ...)
"avNNet"(formula, data, weights, ..., repeats = 5, bag = FALSE, allowParallel = TRUE, seeds = sample.int(1e+05, repeats), subset, na.action, contrasts = NULL)
"avNNet"(x, y, repeats = 5, bag = FALSE, allowParallel = TRUE, seeds = sample.int(1e+05, repeats), ...)
"print"(x, ...)
"predict"(object, newdata, type = c("raw", "class", "prob"), ...)x values for examples.class ~ x1 + x2 + ...formula are preferentially to be taken.NAs are found.
The default action is for the procedure to fail. An alternative is
na.omit, which leads to rejection of cases with missing values on
any required variable. (NOTE: If given, this argument must be named.)avNNet as returned by avNNet.raw for the raw outputs, code for the predicted class or prob for the class probabilities.nnetavNNet, an object of "avNNet" or "avNNet.formula". Items of interest in #' the output are:If a parallel backend is registered, the foreach package is used to train the networks in parallel.
nnet, preProcess
data(BloodBrain)
## Not run:
# modelFit <- avNNet(bbbDescr, logBBB, size = 5, linout = TRUE, trace = FALSE)
# modelFit
#
# predict(modelFit, bbbDescr)
# ## End(Not run)
Run the code above in your browser using DataLab