Something between Tinygrad and Micrograd
Project description
Robingrad
Something between Tinygrad and Micrograd.
Installation
To install the current release,
pip install robingrad==0.0.3
From source
git clone https://github.com/marcosalvalaggio/robingrad.git
cd robingrad
./build.sh
Examples
- In the examples folder, you can find examples of models trained using the Robingrad library.
- A declaration example of an MLP net using Robingrad:
from robingrad import Tensor, draw_dot
import robingrad.nn as nn
class RobinNet:
def __init__(self):
self.l1 = nn.Linear(5,16)
self.l2 = nn.Linear(16,1)
def __call__(self, x):
x = self.l1(x)
x = x.relu()
x = self.l2(x)
return x
model = RobinNet()
res = model(X_train[0].reshape((1,5)))
draw_dot(res)
Todos
- Implement the
optim
module. - Test for Linear layer.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
robingrad-0.0.3.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for robingrad-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e77cff69869a7ebcb319c28accdddeef8a286390895f41bfe615d6d282e623a7 |
|
MD5 | 65e310880c69119cfc1a081fd607b0bb |
|
BLAKE2b-256 | 78be9180fe6fe4644e55feb6d8355a0e4b5490fcb79d7adc0d40234cb305a6bd |