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.4.tar.gz
(10.8 kB
view details)
File details
Details for the file lerpnet-1.0.4.tar.gz.
File metadata
- Download URL: lerpnet-1.0.4.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 |
9df91c3bab9ded448fd41fc3d71c972c8c788c82ee9abd92bd5f98f2a738503c
|
|
| MD5 |
5e29b8a4fb0849c9a8afac798fc06901
|
|
| BLAKE2b-256 |
3d2a16ccc8d148ba1386f69d9b2c12a80faa6b5aa7ff8b855d1ed30b7f8f598e
|