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

Uploaded Source

Built Distribution

kiwigrad-0.26-cp39-cp39-macosx_10_9_universal2.whl (16.6 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for kiwigrad-0.26.tar.gz
Algorithm Hash digest
SHA256 65bee2c34193e3fab0f1aa41a84ed8b73558c8ee95222aab331ba9695f497a2c
MD5 c979341aa7fbfbce31d641bf0508bf9a
BLAKE2b-256 f64d5dcdb63779f0f7176e58caf6159c1cf3599abab6de372cbd8a03f983523f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kiwigrad-0.26-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4209da4cd0e5eb0d4df38c044b298ac58de978e47837338b7b85f6c2782fa4d7
MD5 2abeb11ebe7f9f3ee8206b1f956f20f0
BLAKE2b-256 f00f40f24e89ca1dd41b21563f5dacfcab95e93d2f1bbfcd767fcde2388cb170

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