|
The Train and Test block helps you determine whether you have chosen the best
neural network configuration for your problem. You can use it to test a data set
against different types of neural networks or different configurations of the same
type of neural network. It trains and tests your network a specified number of
times, each time randomly splitting the data set into two subsets: training and
testing.
Note: The Train and Test block is an encapsulation block that contains a NeurOn-
Line diagram on its subworkspace. For more information on what the
subworkspace contains, see "The Train and Test Block's Subworkspace".
To configure the Train and Test block, choose
configure from its menu. It displays
three dialogs, one on top of the other. The topmost is for the Train and Test Block.
It is described in "Configuring". The other dialogs are for the Training and Fit
Tester blocks that are on the Train and Test block's subworkspace. For more information on how to configure them, see "Trainer" and "Fit Tester".
To evaluate the Train and Test block, you must pass it a control signal or choose
evaluate from the menu. The block trains and tests your neural network a
specified number times. Each time it randomly splits the attached data set into
two different subsets using a proportion you specify: one subset for training and
one for testing.
In each case, the training error is an indicator of how well the network fits the
training data. The error will generally decrease if you expand the network architecture, even when the network is overfitting. Therefore, do not use the training
error to select the optimum network architecture.
Configuring
To configure the Train and Test block, choose configure from its menu. It displays
three dialogs, one on top of the other. The topmost dialog is shown below.
|
To specify the number of times to train and test your network, enter a number in
the attribute Resampling Trials. To specify how much of the data set to use for
training and how much for testing, enter the proportion for training in the
attribute Fraction to Training Subset. The block uses the rest of the data for
testing.
Finally, you must configure the dialog for the Fit Tester on the subworkspace of the Train and Test block. For more information on configuring this block, see "Configuring":
The Train and Test Block's Subworkspace
The Train and Test Block has a subworkspace with the following diagram, which
you can access by using the view diagram menu choice.
|
|
See Also
For more information on how to use this block, see the pages below.
| Click here for more information... |
|---|
|
Basic Block Behavior
|
|
"Neural Network Blocks" Chapter
|
|
Data Set
|
|
Trainer
|
|
Fit Tester
|
|
Five Fold CV
|
| Prev
| Next | Start of Chapter | End of Chapter | Contents | Index | (5 out of 7)
Copyright © 1996, Gensym Corporation, Inc.