View source: R/predict.mlp.R View source: R/.ipynb_checkpoints/predict.mlp-checkpoint.R
predict.mlp | R Documentation |
Make predictions using the neural network.
## S3 method for class 'mlp' predict(network, newdata = "train", type = NULL)
network |
An object of class 'mlp' used to make predictions. |
newdata |
An object of class 'data.frame' with the same input columns as the data frame used to create the network. If left NULL, the training data will be used. If set to "valid", the validation data will be used. |
type |
What should be returned. If set to "numeric", then predicted numeric values (regression), probabilities (logistic), or a matrix of probability for each class (classification) is returned. For a classification network, type="labels" can be used to return the class with the highest probability. |
A vector (or matrix, for a classification network) of the predicted outputs.
predict(network, type="labels") predict(network, newdata="valid", type="labels") predict(network, newdata=test.data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.