"avNNet"(x, y, repeats = 5, bag = FALSE, allowParallel = TRUE, seeds = sample.int(1e+05, repeats), ...)
"avNNet"(formula, data, weights, ..., repeats = 5, bag = FALSE, allowParallel = TRUE, seeds = sample.int(1e+05, repeats), subset, na.action, contrasts = NULL)
"predict"(object, newdata, type = c("raw", "class", "prob"), ...)class ~ x1 + x2 + ...
x values for examples.
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.
nnet
avNNet, an object of "avNNet" or "avNNet.formula". Items of interest in the output are:
nnetNULLIf a parallel backend is registered, the foreach package is used to train the networks in parallel.
nnet, preProcessdata(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