|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object yawn.nn.NeuralNetwork yawn.nn.committee.NetworkCommittee
public class NetworkCommittee
A committe or set of neural networks to be trained and used concurrently to provide a consistent learning experiment and predictions. $Id: NetworkCommittee.java,v 1.5 2005/04/07 17:28:07 supermarti Exp $
Nested Class Summary | |
---|---|
class |
NetworkCommittee.TrainRunner
Utility class for multi-threaded training of neural networks. |
Field Summary | |
---|---|
protected CommitteeFunction |
combinationFunction
the function used to combine the results from each committe member |
protected java.util.List |
committee
|
protected boolean |
serialProcessing
|
Constructor Summary | |
---|---|
NetworkCommittee()
|
|
NetworkCommittee(CommitteeFunction combinationFunction)
|
Method Summary | |
---|---|
void |
addCommitteeMembers(NeuralNetwork member)
|
CommitteeFunction |
getCombinationFunction()
|
java.util.List |
getCommitteMembers()
|
int |
getCommitteSize()
|
int |
getInputSize()
|
java.lang.String |
getNeuralNetworkName()
Returns a human readable |
int |
getOutputSize()
|
boolean |
isSerialProcessing()
|
void |
oneLearningStep(Pattern input,
Pattern output)
this has no sense in this context, throws an UnsupportedOperationException by default. |
Pattern |
predict(Pattern input)
Computes a network prediction |
void |
setCombinationFunction(CommitteeFunction combinationFunction)
|
void |
setSerialProcessing(boolean serialProcessing)
|
void |
setup(NeuralNetworkConfig config)
|
void |
train(InputOutputPattern[] iop)
Trains the network until the stop criteria is met. |
NeuralNetworkConfig |
yieldConfiguration()
|
Methods inherited from class yawn.nn.NeuralNetwork |
---|
getAdapting, getStatisticsFacility, isAdapting, setAdapting, setStatisticsFacility |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CommitteeFunction combinationFunction
protected java.util.List committee
protected boolean serialProcessing
Constructor Detail |
---|
public NetworkCommittee()
public NetworkCommittee(CommitteeFunction combinationFunction)
Method Detail |
---|
public void addCommitteeMembers(NeuralNetwork member)
public java.util.List getCommitteMembers()
public void oneLearningStep(Pattern input, Pattern output)
UnsupportedOperationException
by default.
oneLearningStep
in class NeuralNetwork
input
- The network input.output
- The desired output.public Pattern predict(Pattern input)
NeuralNetwork
predict
in class NeuralNetwork
input
- The input to propagate.
NeuralNetwork.predict(yawn.util.Pattern)
public void train(InputOutputPattern[] iop)
NeuralNetwork
train
in class NeuralNetwork
iop
- The training set to be learned.NeuralNetwork.train(yawn.util.InputOutputPattern[])
public CommitteeFunction getCombinationFunction()
public int getCommitteSize()
public java.lang.String getNeuralNetworkName()
NeuralNetwork
getNeuralNetworkName
in class NeuralNetwork
public void setCombinationFunction(CommitteeFunction combinationFunction)
combinationFunction
- The combinationFunction to set.public int getInputSize()
getInputSize
in class NeuralNetwork
public int getOutputSize()
getOutputSize
in class NeuralNetwork
public void setup(NeuralNetworkConfig config) throws ConfigurationException
setup
in class NeuralNetwork
ConfigurationException
public NeuralNetworkConfig yieldConfiguration()
yieldConfiguration
in class NeuralNetwork
NeuralNetwork.yieldConfiguration()
public boolean isSerialProcessing()
public void setSerialProcessing(boolean serialProcessing)
serialProcessing
- The serialProcessing to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |