Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 NullPointerException in doLearningEpoch

open
nobody
None
5
2012-12-24
2010-12-02
David
No

In SUpervisedLearning.java, doLearningEpoch()
Please consider adding the following line to the top of the function:

if (trainingSet==null) return;

This will stop a NullPointerException if the Train button is pressed before a training set has been assigned to a network.

Discussion

  • Zoran Sevarac
    Zoran Sevarac
    2010-12-12

    I preffer putting appropriate try/catch block , since this may intorduce behaviour which is hard to track for users that use API not GUI