
Last chance! 50% off unlimited learning
Sale ends in
Neural Networks using nnet
nn(
dataset,
rvar,
evar,
type = "classification",
lev = "",
size = 1,
decay = 0.5,
wts = "None",
seed = NA,
check = "standardize",
form,
data_filter = "",
arr = "",
rows = NULL,
envir = parent.frame()
)
A list with all variables defined in nn as an object of class nn
Dataset
The response variable in the model
Explanatory variables in the model
Model type (i.e., "classification" or "regression")
The level in the response variable defined as _success_
Number of units (nodes) in the hidden layer
Parameter decay
Weights to use in estimation
Random seed to use as the starting point
Optional estimation parameters ("standardize" is the default)
Optional formula to use instead of rvar and evar
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
Expression to arrange (sort) the data on (e.g., "color, desc(price)")
Rows to select from the specified dataset
Environment to extract data from
See https://radiant-rstats.github.io/docs/model/nn.html for an example in Radiant
summary.nn
to summarize results
plot.nn
to plot results
predict.nn
for prediction
nn(titanic, "survived", c("pclass", "sex"), lev = "Yes") %>% summary()
nn(titanic, "survived", c("pclass", "sex")) %>% str()
nn(diamonds, "price", c("carat", "clarity"), type = "regression") %>% summary()
Run the code above in your browser using DataLab