Syna is a lightweight machine learning framework inspired by DeZero. Built from scratch using only NumPy, it follows a define-by-run (dynamic computation graph) approach and includes a basic reinforcement learning framework.
Unlike most frameworks that implement reinforcement learning as a separate library, Syna provides everything in a single library.
Designed for beginners and researchers, Syna helps you learn the fundamentals of machine learning and the inner workings of frameworks like PyTorch. Performance is not the focus, and GPU support is intentionally omitted to keep the code simple and easy to understand.
Get the Syna Source
Or, from PyPI:
Important
To visualize the computation graph, you need to install Graphviz.
Visualize the computation graph for the fifth derivative of tanh(x) with respect to x.
The output graph is shown below.
Solve CartPole-v1 using the DQN algorithm.
Syna is licensed under the MIT License. See LICENSE for details.
.png)
