v_max
, K_m
) from the equation and creates Parameter
objects that you can configure.
add_initial()
creates a new Measurement
in the dataset with the specified initial conditions.
SimulationConfig
:
t0
, t1
: Start and end times for simulationnsteps
: Number of time points in the outputdt0
: Initial step size (default: 0.1)rtol
, atol
: Numerical tolerances (defaults: 1e-5)simulate()
method is the core function that transforms your initial conditions into complete time-series trajectories. It returns a new Dataset
object where each Measurement
has been populated with simulation results. Each measurement now contains three key components:
time
: An array of time points from t0 to t1 with the specified number of stepsdata
: A dictionary mapping each species name to its concentration time-seriesinitial_conditions
: The original initial values that were used to start this trajectoryplot()
method creates a multi-panel figure where each panel shows one simulation trajectory. When you plot all trajectories at once, you can easily compare how different initial conditions lead to different system behaviors, which is particularly useful for understanding concentration-dependent effects in biochemical systems.
predictor
to the plot function. This enables direct visual assessment of how well your model captures the observed behavior:
predictor
to the plot function, Catalax automatically generates model predictions at the same time points as your experimental data and overlays them on the same plot. This creates a comprehensive visualization that shows both the experimental observations and the model’s predictions, making it immediately clear how well the model captures the system behavior. The plot displays experimental data as points or lines while model predictions appear as smooth overlaid curves, providing an intuitive visual comparison to assess model fit quality.
metrics()
method calculates comprehensive fit statistics that help you assess model quality objectively:
Model
can serve as a Predictor
, which creates a unified interface for model evaluation and comparison. This means that whether you’re working with mechanistic models, neural ODEs, or hybrid approaches, they all implement the same prediction interface. This allows models to be used seamlessly for plotting model curves over experimental data, calculating fit metrics for model validation, and serving as components in parameter estimation workflows.