Skip to main content

Mini deep learning framework

Project description

Kiwigrad


Maintenance

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 object.
  • Methods for saving and loading the weights of a trained model.
  • Support for RNN(1) 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 tanh in the Value object.

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

Uploaded Source

Built Distribution

kiwigrad-0.25-cp39-cp39-macosx_10_9_universal2.whl (16.0 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for kiwigrad-0.25.tar.gz
Algorithm Hash digest
SHA256 4dac706119be139fedd56d730c88de0b32accd4fe1b51c2329acd58e9f0119b9
MD5 5af6ebffb567fa3c1a8daac3c810b476
BLAKE2b-256 926cb42c3cf033c4ff6ce53f09190a76e007cd9a0bd6c25b4e2d347cd2c71a49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kiwigrad-0.25-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5b3358c14d504b3f5eb1bfea458cb2bedac9b9e6d2b6eb1850b681e585a0ac91
MD5 6956492dc440bda9933986f8cb6bedba
BLAKE2b-256 de96c9845beed80e8791738210a668acbb013fe4c207b43b9124fe42646b6718

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