java.lang.Object
org.joone.samples.engine.validation.MultipleValidationSample
- All Implemented Interfaces:
- java.util.EventListener, org.joone.net.NeuralValidationListener
- public class MultipleValidationSample
- extends java.lang.Object
- implements org.joone.net.NeuralValidationListener
This example shows how to check the training level of a neural network
using a validation data source.
The training and the validation phases of the created network is executed
many times, showing for each one the resulting RMSE.
This program shows how to build the same kind of neural net as that
contained into the org/joone/samples/editor/scripting/ValidationSample.ser
file using only java code and the core engine's API. Open that net in
the GUI editor to see the architecture of the net built in this example.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nnet
org.joone.net.NeuralNet nnet
ready
boolean ready
totNets
int totNets
returnedNets
int returnedNets
totRMSE
double totRMSE
minRMSE
double minRMSE
mStart
long mStart
trainingLCP
int trainingLCP
validationLCP
int validationLCP
totCycles
int totCycles
wr
java.io.FileWriter wr
xorNet
java.lang.String xorNet
fSLEEP_INTERVAL
private static long fSLEEP_INTERVAL
MultipleValidationSample
public MultipleValidationSample()
- Creates a new instance of SampleScript
main
public static void main(java.lang.String[] args)
start
private void start()
startValidation
private void startValidation(int trnP,
int valP)
test
private void test(int n)
netValidated
public void netValidated(org.joone.net.NeuralValidationEvent event)
- Specified by:
netValidated in interface org.joone.net.NeuralValidationListener
displayResults
private void displayResults()
getMemoryUse
private static long getMemoryUse()
collectGarbage
private static void collectGarbage()
initializeSimpleParity
private org.joone.net.NeuralNet initializeSimpleParity(int learningPatternNumber,
int testPatternNumber)
- Configures & Starts the SimpleParity Network - Class Method
constructLearningData
private double[][] constructLearningData(int learningPatternNumber)
- Constructs the network Learning Data based on the GUI options - Class Method
constructTestData
private double[][] constructTestData(int testPatternNumber)
- Constructs the network Test Data based on the GUI options - Class Method
initializeModularParity
private org.joone.net.NeuralNet initializeModularParity(int learningPatternNumber,
int testPatternNumber)
initializeNetworkI
private org.joone.net.NeuralNet initializeNetworkI(int learningPatternNumber,
int testPatternNumber)
- Initializes the EETNN Neural Network I - Class Method