Lightweight learnable interpolation using compact MLPs (edge & ESP32 ready)
Project description
LerpNet (Learnable Interpolation Network)
LerpNet is a lightweight neural interpolation library designed for fast regression and function approximation. It trains a compact MLP, learns smooth interpolation from data, and exports results in Python-friendly .pkl and embedded-friendly .json formats for deployment on systems like ESP32.
No heavy deep learning frameworks are required—perfect for edge AI applications.
Features
- Learnable interpolation using a compact MLP
- Extremely lightweight (no PyTorch / TensorFlow required)
- Outputs:
.pklfor Python inference.jsonfor C++ / ESP32 inference
- Built-in utilities:
- Data normalization
- Learning rate finder
- Training metrics (RMSE, MAPE, R²)
- Designed for edge & embedded deployment
- Ideal for:
- Sensor calibration
- Curve fitting
- Control systems
- Real-time interpolation
- Function approximation
- Learnable lookup tables
- Replacement for hard-coded formulas
Generated files:
- model.pkl — Python inference
- norm_constants.json — Input/output normalization
- model_weights.json — Embedded / C++ inference
- Training plots & CSV (actual_vs_predicted.csv)
Installation
pip install lerpnet
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
lerpnet-1.0.3.tar.gz
(10.8 kB
view details)
File details
Details for the file lerpnet-1.0.3.tar.gz.
File metadata
- Download URL: lerpnet-1.0.3.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2a5ff5b40ab624c405f51866c780191133c17d4d132d54fc65ba0c5faccba8b
|
|
| MD5 |
d41f4a6692fa8c2e3af046c0781e1c02
|
|
| BLAKE2b-256 |
51ebca46dee39e863c21c37805f11f9431f5965fe7d3757bb464b937e1ad6b29
|