Skip to main content

Mini deep learning framework

Project description

Kiwigrad


Maintenance PyPI version fury.io

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 and the minigrad packages with additional features. The main features added to Kiwigrad are:

  • Training is faster due to the C implementation of the Value.
  • Methods for saving and loading the weights of a trained model.
  • Support for RNN1 feedforward neural networks.

Examples

  • In the examples folder, you can find examples of models trained using the Kiwigrad library.
  • Here is a declaration example of an 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()

TODOS

  • Include the activation functions sigmoid and tanh in the Value object.
  • Add a notebook example for training a neural network on a regression problem.

Project details


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.22.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

kiwigrad-0.22-cp39-cp39-macosx_10_9_universal2.whl (15.5 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file kiwigrad-0.22.tar.gz.

File metadata

  • Download URL: kiwigrad-0.22.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for kiwigrad-0.22.tar.gz
Algorithm Hash digest
SHA256 5068d8d58abb420fda874e9436ba0de4956406daa04636857fa7fc32c3352038
MD5 b9b3a5d82cda6fc8a9312676894cf8e6
BLAKE2b-256 e0d4647037e37612a7f6e90998afc11247175789197b31d1facf4f05ca73abf7

See more details on using hashes here.

File details

Details for the file kiwigrad-0.22-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for kiwigrad-0.22-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d23bf9b35813364a5994e0daa5b1c295019052090cbc53383ce2d5cd73c922d4
MD5 a8b92467c9df610d0a6b81787a0bba2b
BLAKE2b-256 4a459704c16082fe118c9ff104e8159dfd32cd36bd8e66a88e81fd270203f50b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page