|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ai.neuralnetwork.NeuralNetworkTrainer
public class NeuralNetworkTrainer
Provides a neural network trainer.
Constructor Summary | |
---|---|
NeuralNetworkTrainer()
|
Method Summary | |
---|---|
protected void |
adjustWeights()
Adjust the network weights. |
protected void |
clearDeltaWeights()
Clear the delta weights. |
double |
getAlpha()
|
double |
getBeta()
|
INeuralNetwork |
getNetwork()
|
protected void |
logArray(String title,
double[] array)
Log the given array. |
protected void |
logDeltaWeights()
Log the delta weights. |
void |
setAlpha(double alpha)
Set the value of the momentum constant. |
void |
setBeta(double beta)
Set the value of the learning constant. |
void |
setNeuralNetwork(INeuralNetwork network)
Set the neural network to be trained. |
double |
train(double[][] ins,
double[][] outs)
Train this network with the given training sets. |
protected double |
train(double[] ins,
double[] outs)
Train the neural network with the given training set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NeuralNetworkTrainer()
Method Detail |
---|
public double getAlpha()
public double getBeta()
public INeuralNetwork getNetwork()
public void setAlpha(double alpha)
public void setBeta(double beta)
public void setNeuralNetwork(INeuralNetwork network)
public double train(double[][] ins, double[][] outs)
protected void adjustWeights()
protected void clearDeltaWeights()
protected void logArray(String title, double[] array)
title
- Title.array
- Array.protected void logDeltaWeights()
protected double train(double[] ins, double[] outs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |