Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
The current implementation of PerceptronTrainer#isValid() is:
public boolean isValid() { String algorithmName = getAlgorithm(); return !(algorithmName != null && !(PERCEPTRON_VALUE.equals(algorithmName))); }
but it should call super.isValid() to check iterations and cutoff parameters because PerceptronTrainer uses them.
And if possible, I'd like to rewrite the last line (return statement) because I needed a few minutes to understand it as it has three exclamation points in one line.
Attachments
Issue Links
- links to