NullPointerException in BaseEarlyStoppingTrainer when InvalidScoreIterationTerminationCondition used and first score is NaN · Issue #10190 · deeplearning4j/deeplearning4j · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NullPointerException in BaseEarlyStoppingTrainer when InvalidScoreIterationTerminationCondition used and first score is NaN #10190
when I setup BaseEarlyStoppingTrainer to use InvalidScoreIterationTerminationCondition
if i get a NaN score at epochCount=0, then it throws a NullPointerException instead of just stopping
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.deeplearning4j.nn.api.Model.score()" because "bestModel" is null
at org.deeplearning4j.earlystopping.trainer.BaseEarlyStoppingTrainer.fit(BaseEarlyStoppingTrainer.java:226)
at org.deeplearning4j.earlystopping.trainer.BaseEarlyStoppingTrainer.fit(BaseEarlyStoppingTrainer.java:94)
Activity