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

Uploaded Source

Built Distribution

kiwigrad-0.23-cp39-cp39-macosx_10_9_universal2.whl (15.7 kB view details)

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

File details

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

File metadata

  • Download URL: kiwigrad-0.23.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.23.tar.gz
Algorithm Hash digest
SHA256 183afccbdf315dd223dd216fa6d28ec49100fd55f9c70aad45a90b0164c37ff5
MD5 18d5798880106fa8231e85505318a36e
BLAKE2b-256 4c83a341ec49d612de09b6423aade135d94721fb7ddb427958ce28e629be9353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kiwigrad-0.23-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f08740d211cdaca0e113697c2b1c06e49b2e784473db0617f960d83b369c21dd
MD5 667adf9ba6e5f845553e3c12404a7fc3
BLAKE2b-256 6761875acbb9e73401c17165aaf45c51acbf85631bfdd685fbfd28007c816a1e

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