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.5.tar.gz (10.8 kB view details)

Uploaded Source

File details

Details for the file lerpnet-1.0.5.tar.gz.

File metadata

  • Download URL: lerpnet-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 36ad4f935d58f18a401dda13a2124fa4726b8c30a0a7ed0969cbb6fa2f3d0890
MD5 75f36f750c244fab80eafee4a96c4852
BLAKE2b-256 a134a0eccf95544a0902ab76c7f6c0097a7a8be69768f79fd18cebad55229e13

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