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 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


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)

Uploaded Source

Built Distribution

kiwigrad-0.20-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

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

Hashes for kiwigrad-0.20.tar.gz
Algorithm Hash digest
SHA256 21adb9aa04319dace996bb07367ce8fdb7bccbbf740051c1d26d247c11f2bbcf
MD5 3da828abb44f7e3c2a633e40dd820944
BLAKE2b-256 251081731415dd7458558002858a710e29fbd7c90cc543bd43151f6c6bd0f4c7

See more details on using hashes here.

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

Hashes for kiwigrad-0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 6f0a4875e7ffe1d0bb0266a3fb5df33db7b56dceaafabbebbaddc7f0b2c42de6
MD5 7bcf0b550fbec2182713ee7bdfb435e3
BLAKE2b-256 c7fec29e454413ff8acaccfd7cfb24da74d6bc2ccd1ad6c015fa4dd167b2bc92

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