Toy-Neural-Network-JS icon indicating copy to clipboard operation
Toy-Neural-Network-JS copied to clipboard

Added HTML debug for MNIST NN

Open arisanguinetti opened this issue 8 years ago • 8 comments

I've added some visualization on the NN status and predictions. I was inspired by this article on ML4A.

Also, I've reduced strokeWeight since it will provide a better result (when downscaling to 28x28, if the stroke is too high, it will produce a weird image).

arisanguinetti avatar Feb 12 '18 04:02 arisanguinetti

Awesome stuff! Can you post a link to this running in the browser? It makes it easier to review. (You can create one via your fork and github pages. If you need help, let me know!)

shiffman avatar Feb 12 '18 14:02 shiffman

@shiffman never did GitHub pages, any help will be appreciated! Maybe a YouTuber made a video about this ;)

arisanguinetti avatar Feb 12 '18 15:02 arisanguinetti

BTW, I see that in README.md there's already a link to the examples on a GitHub pages fashion...

arisanguinetti avatar Feb 12 '18 15:02 arisanguinetti

Yes, so if you go to the settings of your fork:

https://github.com/CodingTrain/arisanguinetti/

and enable github pages for the "visualize" branch then I'd be able to see it at:

https://arisanguinetti.github.io/Toy-Neural-Network-JS/examples/mnist/

shiffman avatar Feb 12 '18 16:02 shiffman

@shiffman I'm not able to add GitHub pages to branches other than master... I might be able to merge visualize into master, but then I'll have to keep it up to date, right?

arisanguinetti avatar Feb 12 '18 16:02 arisanguinetti

Oh that's right. . .since it's your fork it's ok to have the proposed changes be in master. But maybe someone who has a better idea can weigh in. Also, maybe I'm just being lazy, I can pull your branch and look on my computer locally!

shiffman avatar Feb 12 '18 16:02 shiffman

@shiffman I'm trying to keep my master in sync with the master of the repo, so If I want to collaborate, I just add a new branch based on the master to create a pull request... I think I can merge the visualize branch into master, and use another branch to keep it in sync with upstream repo...

arisanguinetti avatar Feb 12 '18 16:02 arisanguinetti

Well after this back and forth I think the simplest for you to be able to review it should be me merging the branches, so here it is:

https://arisanguinetti.github.io/Toy-Neural-Network-JS/examples/mnist/

Once you approved the pull request, I can get it back in sync with the upstream ;)

arisanguinetti avatar Feb 12 '18 16:02 arisanguinetti