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.
  • Fix pow function.

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

Uploaded Source

Built Distribution

kiwigrad-0.24-cp39-cp39-macosx_10_9_x86_64.whl (10.5 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for kiwigrad-0.24.tar.gz
Algorithm Hash digest
SHA256 b511abdc6739349744b95fde1b07d57f670e7fb10bdcfcfce7a1574669d73add
MD5 ab531616ae2cfe63c4ff1b9d198af236
BLAKE2b-256 04c6d4d338d5f47ccbacd072c3abf66672746b406698f84122dc657081cdbc44

See more details on using hashes here.

File details

Details for the file kiwigrad-0.24-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for kiwigrad-0.24-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2079403773d775b4d0bbea237dd4bc035019e3e058e3b81ca8c8298a1a56e373
MD5 d1e328c106e93103e1dbc730fd36d64e
BLAKE2b-256 d7dfc1c46b5c5effab051dda3e21cb0c370922db2ddeec782df422a8f1d818b9

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