nn | R Documentation |
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()
)
dataset |
Dataset |
rvar |
The response variable in the model |
evar |
Explanatory variables in the model |
type |
Model type (i.e., "classification" or "regression") |
lev |
The level in the response variable defined as _success_ |
size |
Number of units (nodes) in the hidden layer |
decay |
Parameter decay |
wts |
Weights to use in estimation |
seed |
Random seed to use as the starting point |
check |
Optional estimation parameters ("standardize" is the default) |
form |
Optional formula to use instead of rvar and evar |
data_filter |
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000") |
arr |
Expression to arrange (sort) the data on (e.g., "color, desc(price)") |
rows |
Rows to select from the specified dataset |
envir |
Environment to extract data from |
See https://radiant-rstats.github.io/docs/model/nn.html for an example in Radiant
A list with all variables defined in nn as an object of class nn
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.