Notebooks¶
Executable Jupyter notebooks live in the notebooks/ directory. Each is a
self-contained walkthrough that runs top to bottom against synthetic data and
carries its saved outputs. The Ex_N_* notebooks mirror the scripts in
kipetax/examples/ one-to-one.
Run any of them from the notebooks/ directory:
cd notebooks
jupyter lab Ex_3_bioreactor_monod.ipynb
Tutorial series¶
Hand-written, step-by-step introductions to the core API.
01_simulation— simulate the A → B → C reaction withReactionModel.02_concentration_parameter_estimation— estimate rate constants from noisy concentration data.03_spectral_parameter_estimation— estimate from spectral (Beer-Lambert) data, including D-matrix reconstruction (D ≈ C·Sᵀ).04_rate_law_discovery_with_jaxsr— discover unknown rate laws from spectra alone, with unknown pure-component spectra: MCR-ALS curve resolution, jaxsr symbolic regression on the resolved profiles, then a kipetax refit on the raw spectra of several experiments with shared spectra, pruning and trajectory-BIC model selection. Requirespip install jaxsr.
Worked examples¶
Ports of the kipetax/examples/ demos, one notebook per script.
Ex_3_bioreactor_monod— hybrid Monod estimation from Raman spectra buried under fluorescence and turbidity baselines, resolved by 2nd-derivative preprocessing plus the mechanism.Ex_4_spectral_interactions— non-additive Raman spectra: an additive fit is biased on interacting data;interaction('AB', A*B)removes the bias and recovers the adduct spectrum.Ex_5_polymerization_moments— free-radical polymerization by method of moments; recoverskpfrom conversion alone and reconstructs the molecular-weight distribution.Ex_6_interaction_diagnostics— model selection: rank inflation and structured residuals that flag additivity failure before augmenting the model.Ex_7_model_free_coordinates— DMD/Koopman rates and a diffusion-map reaction coordinate with no mechanism assumed, and where linear DMD breaks on nonlinear kinetics.Ex_8_qd_growth_uvvis— quantum-dot size distribution from UV-Vis viaPopulationBalanceModel; the mechanism regularizes an ill-posed Fredholm inversion.Ex_9_lignin_depolymerization— lignin depolymerization (chain-length population balance with a non-additive recondensation band).Ex_10_asphalt_blending— static blend-property model (MixtureModel): predict viscosity from a spectrum through the sharedw_i·w_jinteraction structure.