|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.net.NeuralNetValidator
public class NeuralNetValidator
This class is useful to validate a neural network. It simply sets some parameters of the neural network passed as parameter and starts itself in a separated thread, notifying a listener when the validation step finishes.
Constructor Summary | |
---|---|
NeuralNetValidator(NeuralNet nn)
|
Method Summary | |
---|---|
void |
addValidationListener(NeuralValidationListener newListener)
|
void |
cicleTerminated(NeuralNetEvent e)
|
void |
errorChanged(NeuralNetEvent e)
|
void |
fireNetValidated()
|
NeuralNet |
getNeuralNet()
Gets the network to validate (or has been validated). |
void |
netStarted(NeuralNetEvent e)
|
void |
netStopped(NeuralNetEvent e)
|
void |
netStoppedError(NeuralNetEvent e,
java.lang.String error)
|
void |
run()
|
void |
start()
Starts the validation into a separated thread |
void |
useTrainingData(boolean anUse)
By default the validator validates a neural network with validation data, however by calling this method before calling the start()
method, one can decide if the network should be validated with validation
data (the parameter anUse should be false ) or
by using the training data (the parameter anUse should be
true ). |
protected void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NeuralNetValidator(NeuralNet nn)
Method Detail |
---|
public void addValidationListener(NeuralValidationListener newListener)
protected void validate()
public void fireNetValidated()
public void useTrainingData(boolean anUse)
start()
method, one can decide if the network should be validated with validation
data (the parameter anUse
should be false
) or
by using the training data (the parameter anUse
should be
true
).
anUse
- true
if we should use training data for validation,
false
if we should use the validation data for validation (default).public void start()
public void run()
run
in interface java.lang.Runnable
public void netStopped(NeuralNetEvent e)
netStopped
in interface NeuralNetListener
public void cicleTerminated(NeuralNetEvent e)
cicleTerminated
in interface NeuralNetListener
public void netStarted(NeuralNetEvent e)
netStarted
in interface NeuralNetListener
public void errorChanged(NeuralNetEvent e)
errorChanged
in interface NeuralNetListener
public void netStoppedError(NeuralNetEvent e, java.lang.String error)
netStoppedError
in interface NeuralNetListener
public NeuralNet getNeuralNet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |