Added rotation and some better coloring.
https://love2d.org/imgmirrur/WElg2wE.mp4
Overfitting in motion.
https://love2d.org/imgmirrur/3eXAqEw.mp4
(somehow the graph only renders if you hit space once)
Artificial Neural Networks for lua
Re: Artificial Neural Networks for lua
- Attachments
-
- lnn4.love
- (9.41 KiB) Downloaded 351 times
Re: Artificial Neural Networks for lua
I've updated your script to the 11.3.
The long space enables and disables the wave line.
1. That is the wave line in the middle?
2. Why the learned NN have wrong result by the 1, 0 input? It shows 0, not expected 1
3. Why you have "nn.func.cos, nn.func.sin", the second one must be the derivative of the first one
4. How works this feature with canvas? I've not used it before.
- Attachments
-
- lnn3a_11.3.love
- (8.04 KiB) Downloaded 253 times
Re: Artificial Neural Networks for lua
Thanks!darkfrei wrote: ↑Sat Oct 24, 2020 8:49 pm
I've updated your script to the 11.3.
The long space enables and disables the wave line.
1. That is the wave line in the middle?
2. Why the learned NN have wrong result by the 1, 0 input? It shows 0, not expected 1
3. Why you have "nn.func.cos, nn.func.sin", the second one must be the derivative of the first one
4. How works this feature with canvas? I've not used it before.
1. I do not understand what you mean with wave line? or you mean the plotter. it shows the error if it gets consistently to 0 its good.
2. The net has no optimizatios whatsoever to counter vanishing gradients etc. (just restart the program and hope it works the next time)
3. sin actually is the derivate of cos and vice versa (sin' = cos; sin'' = sin)
4. canvas is like the screen you render to but as texture. so you render to an invisible screen, then render the invisible screen
like you tell the program to forward any render operation to a canvas by enabling it. then render and disable rendering to the canvas.
after that you can draw the canvas to the screen or another canvas
Re: Artificial Neural Networks for lua
3. sin' = cos but cos' = -sin; sin'' = - sinSirRanjid wrote: ↑Fri Oct 30, 2020 4:48 pm 3. sin actually is the derivate of cos and vice versa (sin' = cos; sin'' = sin)
4. canvas is like the screen you render to but as texture. so you render to an invisible screen, then render the invisible screen
like you tell the program to forward any render operation to a canvas by enabling it. then render and disable rendering to the canvas.
after that you can draw the canvas to the screen or another canvas
4. Why here is two canvas? The first one can use the second, but the second one can use the fist one.
Is canvas here to fast simulation? To set the vertical synchronization?
Re: Artificial Neural Networks for lua
3. oh okay my fault 'darkfrei wrote: ↑Fri Oct 30, 2020 5:06 pm3. sin' = cos but cos' = -sin; sin'' = - sinSirRanjid wrote: ↑Fri Oct 30, 2020 4:48 pm 3. sin actually is the derivate of cos and vice versa (sin' = cos; sin'' = sin)
4. canvas is like the screen you render to but as texture. so you render to an invisible screen, then render the invisible screen
like you tell the program to forward any render operation to a canvas by enabling it. then render and disable rendering to the canvas.
after that you can draw the canvas to the screen or another canvas
4. Why here is two canvas? The first one can use the second, but the second one can use the fist one.
Is canvas here to fast simulation? To set the vertical synchronization?
4. i think for the fading effect of the plot i used it. the implementation may or may not be optimimal
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests