Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
Bug fix for stability exit when no validation set is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjc committed Nov 21, 2015
1 parent 66ba3fb commit e1c4f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sknn/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _train(self, X, y):
log.info("User defined callback terminated at %i iterations.", i)
break

if self.valid_set is not None and n_stable >= self.n_stable:
if self.n_stable is not None and n_stable >= self.n_stable:
log.debug("")
log.info("Early termination condition fired at %i iterations.", i)
break
Expand Down

0 comments on commit e1c4f4b

Please sign in to comment.