alexshtf/torchcurves

Parametric differentiable curves with PyTorch for continuous embeddings, shape-restricted models, or KANs

53
/ 100
Established

Based on the README, here's a technical summary: Implements vectorized parametric curve evaluation (B-splines, Legendre polynomials) with learnable coefficients through custom autograd functions and efficient numerics like Clenshaw recursion and Cox-DeBoor algorithms. Enables shape-constrained modeling by leveraging mathematical properties of curves—monotonicity through ordered control points, bounded outputs via compact interval mapping—without explicit constraints. Designed as composable PyTorch modules that integrate seamlessly into standard nn.Sequential architectures for KAN layers, continuous embeddings, and auction models.

Available on PyPI.

Maintenance 10 / 25
Adoption 14 / 25
Maturity 24 / 25
Community 5 / 25

How are scores calculated?

Stars

53

Forks

2

Language

Python

License

Apache-2.0

Last pushed

Feb 17, 2026

Monthly downloads

289

Commits (30d)

0

Dependencies

1

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/embeddings/alexshtf/torchcurves"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.