A Neural Network in just a Few Lines of Code
June 29, 2023 ยท View on GitHub
The following 2 code snippets show the same neural network implementation in both Neureka and Numpy!
| Neureka (Groovy) | Numpy (Python) |
|---|---|
|
|
But wait! It gets even better!
All of this l1_delta and l2_delta stuff looks really
complicated and is really distracting from the actual architecture
of the network... That is why Neureka has this part
of building a neural network automated for you!
You simply specify which tensors require gradients,
and then you send the error values through the backward
method to your weights (and their gradients).
After each pass you tell your weights to apply their gradients.
Done!
| Neureka (Groovy) | Numpy (Python) |
|---|---|
|
|