|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.huguesjohnson.jail.neuralNetwork.NeuralNetwork
class NeuralNetwork, base class for neural network objects contains a functionality that is common to all neural networks
Constructor Summary | |
NeuralNetwork()
default constructor |
|
NeuralNetwork(java.lang.String logFile)
constructor |
Method Summary | |
void |
finalize()
destructor |
abstract double |
getError()
returns the error for the network |
abstract double[] |
getOutput()
returns the output for the network |
protected void |
log(java.lang.String line)
append a line to the log file |
void |
run()
run the neural network |
abstract void |
setDesiredOutput(double[] desiredOutput)
sets the desired output of the network |
abstract void |
setInput(double[] input)
sets the input to the network |
void |
start()
begins thread execution |
void |
stop()
stops thread execution |
java.lang.String |
toString()
returns a string representation of the object |
abstract void |
train(int iterations)
train the network |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NeuralNetwork()
public NeuralNetwork(java.lang.String logFile)
logFile
- path to log fileMethod Detail |
public void finalize()
finalize
in class java.lang.Object
protected final void log(java.lang.String line)
line
- the line to appendpublic void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void train(int iterations)
iterations
- the number of training iterations to runpublic abstract double getError()
public abstract double[] getOutput()
public abstract void setInput(double[] input)
input
- the input to the networkpublic abstract void setDesiredOutput(double[] desiredOutput)
desiredOutput
- the desired output of the network
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |