# Toy Neural Networks

**URL:** <https://discourse.processing.org/t/toy-neural-networks/1901>\
**Category:** Project Guidance\
**Created:** [July 19, 2018, 11:52am UTC](https://discourse.processing.org/t/toy-neural-networks/1901 "2018-07-19T11:52:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vadsavin-a](https://avatars.discourse-cdn.com/v4/letter/v/848f3c/32.png) [@vadsavin-a](https://discourse.processing.org/u/vadsavin-a)\
**Post date:** [July 19, 2018, 11:52am UTC](https://discourse.processing.org/t/toy-neural-networks/1901/1 "2018-07-19T11:52:15Z")

</div>

How can I reverse my NN? I want to feed the data backwards

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [July 19, 2018, 11:54pm UTC](https://discourse.processing.org/t/toy-neural-networks/1901/2 "2018-07-19T23:54:02Z")

</div>

Hi, @vadsavin-a Can you go over what you have tried to reverse your network?

---

<div class="post-metadata">

**Author:** ![vadsavin-a](https://avatars.discourse-cdn.com/v4/letter/v/848f3c/32.png) [@vadsavin-a](https://discourse.processing.org/u/vadsavin-a)\
**Post date:** [July 20, 2018, 5:20am UTC](https://discourse.processing.org/t/toy-neural-networks/1901/3 "2018-07-20T05:20:37Z")

</div>

Honestly talking, ive tried to do the only one thing: replacing weights and bias matrises. Well, it did not work 🙂

---

<div class="post-metadata">

**Author:** ![madbrine](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/madbrine/32/7271_2.png) [@madbrine](https://discourse.processing.org/u/madbrine)\
**Post date:** [July 28, 2018, 8:31pm UTC](https://discourse.processing.org/t/toy-neural-networks/1901/4 "2018-07-28T20:31:04Z")

</div>

May I see your code?

---

<div class="post-metadata">

**Author:** ![Trilobyte](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/trilobyte/32/361_2.png) [@Trilobyte](https://discourse.processing.org/u/Trilobyte)\
**Post date:** [July 29, 2018, 6:56pm UTC](https://discourse.processing.org/t/toy-neural-networks/1901/5 "2018-07-29T18:56:50Z")

</div>

@ Vadsavin  
If you are using the code I sent you, all you need to do is reverse the layer order (set in the very beginning) and then reverse the weight matrix. I can explain more if this is confusing.  
Best,  
Trilobyte
