The NNET Procedure
TRAIN Statement
TRAIN OUTMODEL=CAS-libref.data-table <options>;
The TRAIN statement causes the NNET procedure to use the training data that are specified in the PROC NNET statement to train a neural network model whose structure is specified in the ARCHITECTURE, INPUT, TARGET, and HIDDEN statements. The goal of training is to determine a set of network weights that best predicts the targets in the training data while still doing a good job of predicting targets of unseen data (that is, generalizing well and not overfitting).
Training starts with a pseudorandomly generated set of initial weights. PROC NNET then computes the objective function for the training partition, and the optimization algorithm adjusts the weights. This process is repeated until any one of the following conditions is met:
The objective function that is computed using the training partition stops improving.
The objective function that is computed using the validation partition stops improving.
The process has been repeated the number of times specified in the MAXITER= and MAXTIME= options in the OPTIMIZATION statement.
When you are training, you must include exactly one TRAIN statement. The TRAIN statement is not allowed when you are doing stand-alone scoring.
You must specify the following option:
You can also specify the following options: