|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread marf.util.BaseThread marf.Classification.NeuralNetwork.Layer
public class Layer
Represents a Neural Network Layer. Being itself a thread, encapsulates a group of Neuron thread comprising a neuron layer of the network. The actual threading is almost unimplemented yet, but the class itself is properly synchronized.
$Id: Layer.java,v 1.10 2007/12/31 00:17:04 mokhov Exp $
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class marf.util.BaseThread |
---|
iTID, oTarget, siNextTID |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
Layer()
Default constructor. |
Method Summary | |
---|---|
boolean |
add(Neuron poNeuron)
Allows adding a neuron to the layer. |
void |
commit()
Applies changes made to neurons on this layer. |
void |
eval()
Evaluates the layer by evaluating each neuron in it. |
Neuron |
get(int piIndex)
Allows getting a neuron object given index. |
java.util.ArrayList |
getLayerData()
Allows querying raw layer data collection. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
Neuron |
getNeuron(java.lang.String pstrName)
Returns the Neuron called by its name string. |
void |
run()
For threading does evaluation. |
int |
size()
Allows querying for layer size in terms of number of neurons. |
void |
train(double pdTrainConst)
Performs training on each neuron in this layer given the training constant between 0.0 and 1.0. |
Methods inherited from class marf.util.BaseThread |
---|
getNextTID, getTarget, getTID |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Layer()
Method Detail |
---|
public void eval()
public void train(double pdTrainConst)
pdTrainConst
- training constant to use for neuronspublic final void commit()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public Neuron get(int piIndex)
piIndex
- the index to fetch the neuron from.
public boolean add(Neuron poNeuron)
poNeuron
- the neuron to add
true
if the neuron was addedpublic int size()
public Neuron getNeuron(java.lang.String pstrName)
pstrName
- the neuron name to search for
public java.util.ArrayList getLayerData()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |