Loading repository data…
Loading repository data…
mihaicodes / repository
⚡TinyTensor is a lightweight open-source deep learning library built from scratch in Python, inspired by Joel Grus' approach.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
TinyTensor is an open-source deep learning library built from scratch in Python, inspired by Joel Grus' approach. This project includes 2 examples for creating a Non-Linear Neural Network and training it in order to predict the common XOR and FizzBuzz problems.
To use this deep learning library locally, you have 2 methods available:
git clone https://github.com/michaelradu/tinytensor.git
# Example of basic imports for training a Neural Network
from tinytensor.train import train
from tinytensor.nn import NeuralNet
from tinytensor.layers import Linear, Tanh
from tinytensor.optim import SGD
import pickle
with open('./models/trained_pipeline-0.1.0.pk1', 'wb') as f:
pickle.dump(net, f)
git clone https://github.com/michaelradu/tinytensor.git
cd tinytensor
docker build -t tinytensor-app .
docker run tinytensor-app
# Example of basic imports for training a Neural Network
from tinytensor.train import train
from tinytensor.nn import NeuralNet
from tinytensor.layers import Linear, Tanh
from tinytensor.optim import SGD
import pickle
with open('./models/trained_pipeline-0.1.0.pk1', 'wb') as f:
pickle.dump(net, f)
xor.py example with pickle model export included for use within other apps.Fitting or training a model is a straightforward process. To achieve this:
For more code-wise information see the provided examples and play around with them.
Contributions to this project are highly encouraged! If you have ideas for improvements, bug fixes, or new features, feel free to open an issue or submit a pull request. Let's collaborate to make this library even better and learn new concepts together!
This code is licensed under the GNU General Public License, version 3 (GPL-3.0). See the LICENSE file for more details.
Special thanks to Joel Grus and the open-source community for their amazing contributions to Machine Learning and for their copious amounts of educational content, making projects like this possible.
Feel free to explore, experiment, modify, rewrite, and integrate this library into your applications. Happy coding!