|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.anji.nn.AnjiNet
public class AnjiNet
Aggregates all pieces for a full neural network.
Field Summary | |
---|---|
static java.lang.String |
XML_TAG
base XML tag |
Constructor Summary | |
---|---|
protected |
AnjiNet()
for testing only |
|
AnjiNet(java.util.Collection someNeurons,
java.util.List someInNeurons,
java.util.List someOutNeurons,
java.util.Collection someRecurrentConns,
java.lang.String aName)
|
Method Summary | |
---|---|
long |
cost()
|
void |
fullyActivate()
make sure all neurons have been activated for the current cycle; this is to catch neurons with no forward outputs |
int |
getInputDimension()
|
Neuron |
getInputNeuron(int idx)
|
java.util.List |
getInputNeurons(int fromIdx,
int toIdx)
|
java.lang.String |
getName()
|
int |
getOutputDimension()
|
Neuron |
getOutputNeuron(int idx)
|
java.util.List |
getOutputNeurons(int fromIdx,
int toIdx)
|
java.util.Collection |
getRecurrentConns()
|
protected void |
init(java.util.Collection someNeurons,
java.util.List someInNeurons,
java.util.List someOutNeurons,
java.util.Collection someRecurrentConns,
java.lang.String aName)
|
boolean |
isRecurrent()
|
void |
reset()
clear all memory in network, including neurons and recurrent connections |
void |
step()
indicates a time step has passed |
java.lang.String |
toString()
|
java.lang.String |
toXml()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_TAG
Constructor Detail |
---|
public AnjiNet(java.util.Collection someNeurons, java.util.List someInNeurons, java.util.List someOutNeurons, java.util.Collection someRecurrentConns, java.lang.String aName)
someNeurons
- someInNeurons
- someOutNeurons
- someRecurrentConns
- aName
- protected AnjiNet()
Method Detail |
---|
public long cost()
protected void init(java.util.Collection someNeurons, java.util.List someInNeurons, java.util.List someOutNeurons, java.util.Collection someRecurrentConns, java.lang.String aName)
someNeurons
- all neuronssomeInNeurons
- input neurons (also included in someNeurons)someOutNeurons
- output neurons (also included in someNeurons)someRecurrentConns
- recurrent connectionsaName
- public Neuron getInputNeuron(int idx)
idx
-
idx
public int getInputDimension()
public Neuron getOutputNeuron(int idx)
idx
-
idx
public java.util.List getOutputNeurons(int fromIdx, int toIdx)
fromIdx
- toIdx
-
toIdx
(inclusive) to fromIdx
(exclusive)public java.util.List getInputNeurons(int fromIdx, int toIdx)
fromIdx
- toIdx
-
toIdx
(inclusive) to fromIdx
(exclusive)public int getOutputDimension()
public java.util.Collection getRecurrentConns()
Collection
contains recurrent Connection
objectspublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String getName()
public void step()
public void fullyActivate()
public void reset()
public java.lang.String toXml()
String
XML representationpublic boolean isRecurrent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |