Model Selection class
The model selection is applied to find a neural network with a topology that minimize the error for new data. There are two ways to obtain an optimal topology, the order selection and the inputs selection.
Order selection algorithms are used to get the optimal number of hidden perceptron in the neural network. Inputs selection algorithms are responsible for finding the optimal subset of inputs.
In this tutorial we are going to use the iris data set to show how to use some of the main methods in ModelSelection class so, before continuing it is advisable to read the previous chapter TrainingStrategy class.
To construct a model selection object associated to a training strategy object we do the following:
where training_strategy is the training strategy object.
The default model selection consists on a growing inputs selection algorithm, an incremental order selection algorithm. The next sentence sets a different training strategy.
The most important methods of a model selection are the one that perform the inputs and the order selection. Respectively, the use are as follows:
We can save the above object to a XML file.