API Reference

Complete API documentation for NLSQ modules and functions.

Core API

The main NLSQ API provides drop-in replacements for SciPy’s curve fitting functions:

Main Functions

See NLSQ API Reference for complete module documentation.

Large Dataset API

Specialized functions for large-scale fitting:

See Large Dataset API Reference for detailed documentation.

Adaptive Hybrid Streaming API

Four-phase hybrid optimizer combining parameter normalization, L-BFGS warmup, streaming Gauss-Newton, and exact covariance computation:

See:

Module Organization

Core Modules

  • nlsq.minpack - Main curve_fit implementation

  • nlsq.least_squares - Least squares solver

  • nlsq.trf - Trust Region Reflective algorithm

Advanced Features

  • nlsq.large_dataset - Large dataset handling

  • nlsq.memory_manager - Memory management

  • nlsq.smart_cache - Intelligent caching

  • nlsq.diagnostics - Model Health Diagnostics System (identifiability, gradient health, sloppy model analysis)

  • nlsq.adaptive_hybrid_streaming - Four-phase hybrid optimizer

  • nlsq.hybrid_streaming_config - Hybrid streaming configuration

  • nlsq.parameter_normalizer - Parameter normalization

Utilities

  • nlsq.validators - Input validation

  • nlsq.loss_functions - Loss function library

  • nlsq.config - Configuration management

  • nlsq.logging - Logging utilities

See NLSQ API Reference for complete documentation of all modules.

Development Tools

Notebook Configuration Utilities

Modern framework for transforming Jupyter notebooks with automated configurations:

See Notebook Utilities API Reference for complete API documentation and Notebook Configuration Utilities for usage guide.

Performance Benchmarks

See NLSQ Optimization Case Study: When to Stop Optimizing for detailed performance analysis.