Skip to main content

Welcome to GradForge

Machinelearning library created for full customization of learning process

Telegram link

Features

Models and layers with: • Autograd
• Callbacks • Metrics • Preprocessing functions


Project published on PyPI

Install it with pip

pip install gradforge

Quick Start

from gradforge.core import Tensor
from gradforge.optimizers import SGD
from gradforge.autograd.standard_engine import StandardEngine
from gradforge.backend import BackendManager, NumpyBackend
from gradforge.training.layers.linear import Linear

BackendManager.set_backend(NumpyBackend())

x       = Tensor([[4], [8], [9]])
y       = Tensor([[8], [16], [18]])
test    = Tensor([[40], [60]])

model = Linear(1, 1)
engine = StandardEngine()
optimizer = SGD(learning_rate=1e-3)
for epoch in range(1000):
    y_pred  = model.predict(x)
    error   = y - y_pred
    loss    = error ** 2

    optimizer.zero_grad(model.params)
    engine.backward(loss)
    optimizer.step(model.params)

print(model.predict(test).data)

Metadata

Release files for gradforge 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gradforge 2.1.1
File Size Uploaded Provenance
gradforge-2.1.1.tar.gz 10.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gradforge 2.1.1
File Interpreter ABI Platform
gradforge-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / gradforge-2.1.1.tar.gz

Download URL gradforge-2.1.1.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3eafcf85d20a79feff34dfb7bbb000b25593993a2d679a9b216b20bc4fc06285
BLAKE2b-256 checksum
How to use checksums
f3fa0d48ed07e2ecd1fa9c6f029c897e792a59865c59c53158ceac72f56ed4cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / gradforge-2.1.1-py3-none-any.whl

Download URL gradforge-2.1.1-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a4845cad8d3d99c9769ab4b218beb2c33d6f03583c2c5a107b8f3420434e4cc
BLAKE2b-256 checksum
How to use checksums
1399c655e04d258bf0be53228a9e022f0be690cca86dbca911cb6410a011e506
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for gradforge 2.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page