项目
在 GitHub 查看
borgwang/tinynn
关于
A lightweight deep learning library
机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
探索相关项目
加载中…