DeepLearning | R Documentation |
Fit a neural network model
DeepLearning(
formula,
data = NULL,
subset = NULL,
weights = NULL,
output = "Accuracy",
missing = "Exclude cases with missing data",
normalize = TRUE,
seed = 12321,
rand.verbose = FALSE,
show.labels = FALSE,
hidden.nodes = 10,
max.epochs = 100
)
formula |
A formula of the form |
data |
A |
subset |
An optional vector specifying a subset of observations to be
used in the fitting process, or, the name of a variable in |
weights |
An optional vector of sampling weights, or the
name of a variable in |
output |
One of |
missing |
How missing data is to be treated. Options:
|
normalize |
Logical; if |
seed |
The random number seed. |
rand.verbose |
Prints extra info for checking the random number generation |
show.labels |
Shows the variable labels, as opposed to the labels, in the outputs, where a variables label is an attribute (e.g., attr(foo, "label")). |
A | |
max.epochs |
Integer; the maximum number of epochs for which to train the network. |
Categorical predictor variables are converted to binary (dummy) variables.
The model is trained first using a random 70
cross-validation loss on the remaining 30
max.epochs
and 3 epochs of no improvement in cross-validation loss. The final model
is then retrained on all data (after any "subset"
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.