Mini deep learning framework
Project description
Kiwigrad
Kiwigrad? yes, it is another version of micrograd that was created just for fun and experimentation.
Install
To install the current release,
pip install kiwigrad
Kiwigrad Library
Kiwigrad library is a modified version of the micrograd package with additional features. The main features added to Kiwigrad are:
- Methods for saving and loading the weights of a trained model.
- Support for RNN1 feedforward neural networks.
Example Implementation
Here's an example implementation of a MLP net using Kiwigrad:
from kiwigrad import MLP, Layer
class PotNet(MLP):
def __init__(self):
layers = [
Layer(nin=2, nout=16, bias=True, activation="relu"),
Layer(nin=16, nout=16, bias=True, activation="relu"),
Layer(nin=16, nout=1, bias=True, activation="linear")
]
super().__init__(layers=layers)
model = PotNet()
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
kiwigrad-0.21.tar.gz
(10.3 kB
view details)
Built Distribution
File details
Details for the file kiwigrad-0.21.tar.gz
.
File metadata
- Download URL: kiwigrad-0.21.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d672ec498997c8ff8d08d4dba3884405dba1a698070e5fb66981878990ffc3cc |
|
MD5 | 4545be2bd4a86f82a0169f91e294f5b2 |
|
BLAKE2b-256 | 39c03fd0e218c31c015d0ca2d997262c6d4fbea6ad32aba21bceb49d80469dfb |
File details
Details for the file kiwigrad-0.21-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: kiwigrad-0.21-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 13.6 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4afe6ea5941a02c677673a13b5aa57a364c857caac8fae24bb3afe7934769302 |
|
MD5 | e4442c4a91125eba8f4982fb0d09f654 |
|
BLAKE2b-256 | 1f31c4b5607e2e377900f80328d1882a47f7634361fcddcee43c82eb097d90e8 |