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.3

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.3
File Size Uploaded Provenance
gradforge-2.1.3.tar.gz 10.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 29.5 kB

Release files / gradforge-2.1.3.tar.gz

Download URL gradforge-2.1.3.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
65d1feffc96ec430a6451b216c1f5b1cd85cfa341a76b44d1038fd97ace0f9d8
BLAKE2b-256 checksum
How to use checksums
446da4dfa6f5a68aae07a5991ebb527b1da5d4fc761527e39900de70c7afac75
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.3-py3-none-any.whl

Download URL gradforge-2.1.3-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a1bb83e896ddd4fa2e93be20af019778a62c46f5419f6db1376e7b1de682d1e
BLAKE2b-256 checksum
How to use checksums
71dc78be5e23a224e08b08c85ae4a8ca9c05b53a43743f4b4a2d7b538b11466c
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.3

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