public class NeocognitronTrainer
extends java.lang.Object
Constructor and Description |
---|
NeocognitronTrainer(java.util.ArrayList<double[][]> i,
java.util.ArrayList<double[][]> t,
java.io.File outFile)
Initialize the neocognitron trainer with a set of input files, training
files, and the output file for the best neocognitron
|
Modifier and Type | Method and Description |
---|---|
Neocognitron |
getNeocognitron(int trainingLoops)
Get the final neocognitron.
|
Neocognitron |
runTrainingSet(int loops)
Train the neocognitron using a specific number of loops.
|
double |
verifyNeocognitron(Neocognitron n,
java.util.ArrayList<double[][]> t,
boolean verbose)
Calculate the error rate of a specific neocognitron using a specific
list of inputs.
|
double |
verifyNeocognitron(Neocognitron n,
boolean verbose)
Calculate the error rate of a specific neocognitron.
|
boolean |
verifyTraining(Neocognitron n)
Determine if training was successful.
|
public NeocognitronTrainer(java.util.ArrayList<double[][]> i, java.util.ArrayList<double[][]> t, java.io.File outFile)
i
- Input images for trainingt
- Input images used for verificationoutFile
- File where the Neocognitron is savedpublic Neocognitron runTrainingSet(int loops)
loops
- Number of times each image is presented to the networkpublic boolean verifyTraining(Neocognitron n)
n
- Neocognitron to be verifiedpublic Neocognitron getNeocognitron(int trainingLoops)
trainingLoops
- Loops used during training.public double verifyNeocognitron(Neocognitron n, boolean verbose)
n
- The neocognitron under test.verbose
- Display each test on the console.public double verifyNeocognitron(Neocognitron n, java.util.ArrayList<double[][]> t, boolean verbose)
n
- The neocognitron under testt
- The list of files used to verify the networkverbose
- Display each test on the console.