public class NeuralNetValidator extends java.lang.Object implements java.lang.Runnable, NeuralNetListener
Constructor and Description |
---|
NeuralNetValidator(NeuralNet nn) |
Modifier and Type | Method and Description |
---|---|
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() |
public NeuralNetValidator(NeuralNet nn)
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()
Submit Feedback to pmarrone@users.sourceforge.net