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

Docs: Convert to LSTM example to vanilla JS, add description #69

Merged
merged 1 commit into from Feb 27, 2018

Conversation

dariusk
Copy link
Contributor

@dariusk dariusk commented Feb 26, 2018

This PR removes p5 as a dependency for the simple LSTM example, relying instead on vanilla JS DOM calls. It also removes noCanvas() from the original example code as documented; while this is necessary for it to run in the documentation framework itself, for an individual user copying and pasting the demo code it will simply throw an error.

I also added a prose description of what the demo is doing.

@dariusk
Copy link
Contributor Author

dariusk commented Feb 26, 2018

I also move the eventHandler hooks from the javascript to the HTML itself (so like an onchange attr in the sliders).

@shiffman shiffman self-requested a review February 26, 2018 20:20
Copy link
Member

@shiffman shiffman left a comment

Choose a reason for hiding this comment

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

Thank you for this!

@shiffman shiffman mentioned this pull request Feb 26, 2018
@cvalenzuela
Copy link
Member

awesome! should we merge?

@shiffman
Copy link
Member

Yes! (My "review approved" checkmark was meant to be confirmation of this!)

@cvalenzuela cvalenzuela merged commit 0ff4996 into ml5js:master Feb 27, 2018
joeyklee pushed a commit that referenced this pull request Jun 2, 2019
Docs: Convert to LSTM example to vanilla JS, add description
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.

None yet

3 participants