Tinynn
A lightweight deep learning library
Install / Use
/learn @borgwang/TinynnREADME
tinynn
tinynn is a lightweight deep learning framework written in Python3 (for learning purposes).
Getting Started
Install
pip3 install tinynn
Run examples
git clone https://github.com/borgwang/tinynn.git
cd tinynn/examples
# MNIST classification
python3 mnist/run.py
# a toy regression task
python3 nn_paint/run.py
# reinforcement learning demo (gym environment required)
python3 rl/run.py
Intuitive APIs
# define a model
net = Net([Dense(50), ReLU(), Dense(100), ReLU(), Dense(10)])
model = Model(net=net, loss=MSE(), optimizer=Adam(lr))
# train
for batch in iterator(train_x, train_y):
preds = model.forward(batch.inputs)
loss, grads = model.backward(preds, batch.targets)
model.apply_grads(grads)
Contribute
Please follow the Google Python Style Guide for Python coding style.
License
MIT
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
