Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for debug: "true" in ml5.neuralNetwork #1118

Merged
merged 4 commits into from
Feb 23, 2021
Merged

Allow for debug: "true" in ml5.neuralNetwork #1118

merged 4 commits into from
Feb 23, 2021

Conversation

shiffman
Copy link
Member

β†’ Step 1: Describe your Pull Request πŸ“

This is a very minor fix for an issue I encountered when making a video tutorial on image classification. The debug visualization does not show up properly if debug is set to the string "true".

  const options = {
    debug: 'true',
  };

While the boolean literal (below) is preferred, it took me a very long time to discover the issue and I think it's a mistake others might make and we might as well allow it as the intention is clear.

  const options = {
    debug: true,
  };

src/NeuralNetwork/index.js Outdated Show resolved Hide resolved
Copy link
Contributor

@joeyklee joeyklee left a comment

Choose a reason for hiding this comment

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

πŸ‘

@bomanimc bomanimc merged commit 4b46ed8 into main Feb 23, 2021
@bomanimc bomanimc deleted the debug-nn-fix branch February 23, 2021 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants