Skip to main content

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:
    • .pkl for Python inference
    • .json for 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:

  1. model.pkl — Python inference
  2. norm_constants.json — Input/output normalization
  3. model_weights.json — Embedded / C++ inference
  4. 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)

Uploaded Source

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

Hashes for lerpnet-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b2a5ff5b40ab624c405f51866c780191133c17d4d132d54fc65ba0c5faccba8b
MD5 d41f4a6692fa8c2e3af046c0781e1c02
BLAKE2b-256 51ebca46dee39e863c21c37805f11f9431f5965fe7d3757bb464b937e1ad6b29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page