This function computes for a given data set and weights of a two hidden layer network, a prediction from a TeachNet neural network.
# S3 method for Weights2
predict(object, newdata, delete.firstColumn=TRUE, ...)
The Weights2 object TeachNet returned after training.
The data set you which to predict. Has to have the same variables as the used training data set (except for the class variable) and has to be scaled (Z-Scores)!
When class variable is first column, set to TRUE
additional arguments affecting the predictions produced
returns a vector with the predictions of TeachNet