Skip to content

Conversation

AlexisBogroff
Copy link

  • Avoid using sys.exit()
  • Use a boolean instead

Indeed, sys.exit() unexpectedly kills python, rather than properly stopping the script.

- Avoid using sys.exit()
- Use a boolean instead
# stop training
if np.mean(scores[-min(10, len(scores)):]) > 490:
sys.exit()
complete = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we just break here? and not use complete flag?

@AlexisBogroff
Copy link
Author

AlexisBogroff commented Nov 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants