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 *
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.20.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file kiwigrad-0.20.tar.gz
.
File metadata
- Download URL: kiwigrad-0.20.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21adb9aa04319dace996bb07367ce8fdb7bccbbf740051c1d26d247c11f2bbcf |
|
MD5 | 3da828abb44f7e3c2a633e40dd820944 |
|
BLAKE2b-256 | 251081731415dd7458558002858a710e29fbd7c90cc543bd43151f6c6bd0f4c7 |
File details
Details for the file kiwigrad-0.20-py3-none-any.whl
.
File metadata
- Download URL: kiwigrad-0.20-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f0a4875e7ffe1d0bb0266a3fb5df33db7b56dceaafabbebbaddc7f0b2c42de6 |
|
MD5 | 7bcf0b550fbec2182713ee7bdfb435e3 |
|
BLAKE2b-256 | c7fec29e454413ff8acaccfd7cfb24da74d6bc2ccd1ad6c015fa4dd167b2bc92 |