Repository navigation
PyNLME v0.2.2
Pre-release
Pre-release
Fixed
- Rust Backend Integration - Fixed critical issues preventing Rust backend from working correctly
- Corrected model function interface to handle Python functions properly
- Fixed array dimension mismatches (2D → 1D) between Python and Rust
- Removed inappropriate parameter constraints that prevented convergence
- MATLAB Baseline Compatibility - Achieved compatibility with MATLAB nlmefit/nlmefitsa
- Implemented correct bi-exponential model with log parameter transformations
- Fixed parameterization to match MATLAB's
ParamTransform=[0 1 0 1]specification - Updated indomethacin pharmacokinetic model to use proper exponential transforms
- Parameter Optimization - Fixed optimization initialization and convergence
- Corrected parameter passing from initial values (
beta0) to optimizer - Improved gradient computation and parameter updates in Rust backend
- Fixed mixed-effects parameter estimation for both MLE and SAEM algorithms
- Corrected parameter passing from initial values (
Changed
- Test Tolerance - Adjusted MATLAB baseline test tolerance to 0.3 for realistic
algorithmic differences in mixed-effects optimization - Model Implementation - Updated indomethacin model to bi-exponential form with
proper parameter transformations matching MATLAB documentation
Improved
- Algorithm Accuracy - Both nlmefit and nlmefitsa now converge to parameters
close to MATLAB baseline values (within 0.3 tolerance) - Cross-platform Compatibility - Fixed optimization issues specific to macOS
and other platforms - Backend Reliability - Rust backend now properly handles all test cases
without falling back to Python implementation