CodingTrain / Toy-Neural-Network-JS

Neural Network JavaScript library for Coding Train tutorials
MIT License
425 stars 242 forks source link

Add Reverse method to query NN in invert mode #95

Closed jynolen closed 1 year ago

jynolen commented 6 years ago

I know it's not usefull ! (Really)

But I was thinking that it can be interesting to show people on video what the Neural Network think when we send it like "a cat".

So i have made a static function called reverse to make a new neural network with everything in a revert mode PLUS add a bias at the input layer but set by default to 0 to avoid conflict. So it makes the new (invert) neural network works exactly like the standard one.