Welcome to GradForge
Machinelearning library created for full customization of learning process
FeaturesModels 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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gradforge-2.1.2.tar.gz | 10.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gradforge-2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.5 kB
Release files / gradforge-2.1.2.tar.gz
| Download URL | gradforge-2.1.2.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed50c5d83841ae83acd8f7be32f337e0798157dc895b63beb787eca87a450427
|
|
BLAKE2b-256 checksum How to use checksums |
500d5f7d0061941f98873c3406db5cfdb2e93fb93333572e10fa171d8b89be80
|
| 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.2-py3-none-any.whl
| Download URL | gradforge-2.1.2-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26a4b832c24da706e87d365e2c36fe7753d560f54cfdccbea7b9d6978fc83279
|
|
BLAKE2b-256 checksum How to use checksums |
4faff6cc1a7d3331e6e9fe71d08af2c7525f0cdbf75b90863a286a4d94f8891b
|
| 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.2
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.