Usul
Usul-cpp is a C++23 library that lets data scientists define neural networks by writing the raw math instead of using heavy libraries like TensorFlow. It provides built-in tensor support, auto-grad, and back-propagation; it was written from scratch (subtly built on top of xtensor), is extremely lightweight, memory safe, and was hand-built by the author with no AI.
What it addresses
Heavy libraries such as TensorFlow get in the way of creating models, and opaque classes that supposedly do something are more mystifying to read than the underlying math itself.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Usul
Usul-cpp is a C++23 library that lets data scientists define neural networks by writing the raw math instead of using heavy libraries like TensorFlow. It provides built-in tensor support, auto-grad, and back-propagation; it was written from scratch (subtly built on top of xtensor), is extremely lightweight, memory safe, and was hand-built by the author with no AI.
Problem: Heavy libraries such as TensorFlow get in the way of creating models, and opaque classes that supposedly do something are more mystifying to read than the underlying math itself.
Audience: Data scientists creating neural network models without heavy libraries such as TensorFlow
Posted by @ronny2fresh · Original source ↗
Story title · @ronny2fresh · · Source ↗
Show HN: Usul – Express neural networks as raw math in C++23
Submitted URL · @ronny2fresh · · Source ↗
https://github.com/crushr3sist/Usul-cpp
Source text · @ronny2fresh · · Source ↗
SO, Usul-cpp is a library I've written in C++, it is based around allowing data scientists to create their models without heavy libraries such as tensorflow, and just express their models using maths, and Usul will handle the rest. There is builtin tensor support, auto-grad, back-prop and its quite fast.
Source text · @ronny2fresh · · Source ↗
I wrote it from scratch in cpp (23) due to the fact that I wanted to emphasise on precision, however it's subtly built on top of xtensor.
Source text · @ronny2fresh · · Source ↗
Just write the maths, and Usul-cpp will handle the rest, it is extremely lightweight, and the entire library is memory safe.
Source text · @ronny2fresh · · Source ↗
I wrote it because, it seemed less mystifying to read maths instead of a random class that supposedly does something.
Source text · @ronny2fresh · · Source ↗
You can view the project at [https://github.com/crushr3sist/Usul-cpp](https://github.com/crushr3sist/Usul-cpp)
Source text · @ronny2fresh · · Source ↗
I taught myself neural networks, taught myself the maths, until I hand written the xor gate problem in matrix syntax using xtensor, and manually, by hand, no AI, did the xor gate problem manually backwards propagating error, automatically differentiating.