| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<NeuralNet> |
nets
List of neural networks.
|
protected java.util.ArrayList<PatternSet> |
patternSets
List of data sets.
|
protected java.util.Properties |
props
User Properties.
|
| Constructor and Description |
|---|
Brain() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNet(int index,
NeuralNet net)
Add a network to the brain.
|
void |
addNet(NeuralNet net)
Add a network to the brain.
|
void |
addSet(int index,
PatternSet set)
Add a data set to the brain.
|
void |
addSet(PatternSet set)
Add a data set to the brain.
|
void |
clearNets()
Clear the list of neural networks, i.e.
|
void |
clearSets()
Clear the list of data set, i.e.
|
Brain |
clone()
Clone this Brain.
|
void |
fromXML(org.jdom2.Element element)
Reads attributes from XML tree.
|
NeuralNet |
getNet(int index)
Return a network.
|
int |
getNetCount()
Return the number of neural networks.
|
PatternSet |
getSet(int index)
Return a data set.
|
int |
getSetCount()
Return the number of data sets.
|
void |
removeNet(int index)
Remove a network from the brain.
|
void |
removeNet(NeuralNet net)
Remove a network from the brain.
|
void |
removeSet(int index)
Remove a data set from the brain.
|
void |
removeSet(PatternSet set)
Remove a data set from the brain.
|
void |
save(java.io.File file)
Save a Brain.
|
org.jdom2.Element |
toXML(org.jdom2.Element element)
Writes attributes to XML tree.
|
protected java.util.ArrayList<NeuralNet> nets
protected java.util.ArrayList<PatternSet> patternSets
protected java.util.Properties props
public Brain clone()
clone in class java.lang.ObjectCloneException - if cloning fails internally.public int getNetCount()
public NeuralNet getNet(int index)
index - Index of the network to return.public void addNet(NeuralNet net)
net - Network to add.public void addNet(int index,
NeuralNet net)
net - Network to add.index - Index where to insert the network.public void removeNet(int index)
index - Index of the network to remove.public void removeNet(NeuralNet net)
net - Network to remove.public void clearNets()
public int getSetCount()
public PatternSet getSet(int index)
index - Index of the data set to return.public void addSet(PatternSet set)
set - data set to add.public void addSet(int index,
PatternSet set)
index - Index where to insert the data set.set - data set to add.public void removeSet(int index)
index - Index of the data set to remove.public void removeSet(PatternSet set)
set - data set to remove.public void clearSets()
public void save(java.io.File file)
throws java.io.IOException
file - File to save it to.java.io.IOExceptionpublic void fromXML(org.jdom2.Element element)
Storable