org.joone.net
Class NetChecker
- java.lang.Object
-
- org.joone.net.NetChecker
-
public class NetChecker extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description NetChecker(NeuralNet netToCheckArg)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.TreeSetcheck()Validation checks for invalid parameter values, misconfiguration, etc.booleanhasErrors()Method to determine whether there are validation errors in the net.
-
-
-
Constructor Detail
-
NetChecker
public NetChecker(NeuralNet netToCheckArg)
Constructor. Sets the NeuralNet for this instance.- Parameters:
netToCheckArg- the NeuralNEt to use.
-
-
Method Detail
-
check
public java.util.TreeSet check()
Validation checks for invalid parameter values, misconfiguration, etc. All network components should include a check method that firstly calls its ancestor check method and adds these to any check messages it produces. This allows check messages to be collected from all levels of a component to be returned to the caller's check method. Using a TreeSet ensures that duplicate messages are removed. Check messages should be produced using the generateValidationErrorMessage method of the NetChecker class.- Returns:
- validation errors.
-
hasErrors
public boolean hasErrors()
Method to determine whether there are validation errors in the net.- Returns:
- true if errors exist.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG