batch
batch
¶
Shared batch fitting utilities.
This module provides ParameterMap creation and image-level fitting
helpers used by BaseFitter.fit_image().
create_parameter_maps
¶
create_parameter_maps(model, fitted_params, r2_values, converged, voxel_indices, shape, r2_threshold=0.5, fitting_method='levenberg_marquardt')
Create ParameterMap objects from fitted results.
| PARAMETER | DESCRIPTION |
|---|---|
model
|
Model that was fit (provides parameter names, units, reference).
TYPE:
|
fitted_params
|
Fitted parameters, shape
TYPE:
|
r2_values
|
R-squared values, shape
TYPE:
|
converged
|
Convergence flags, shape
TYPE:
|
voxel_indices
|
Original voxel indices, shape
TYPE:
|
shape
|
Output volume shape
TYPE:
|
r2_threshold
|
Deprecated, ignored. Kept for signature compatibility; quality mask no longer applies an R² cutoff.
TYPE:
|
fitting_method
|
Name of fitting method for metadata.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict[str, ParameterMap]
|
Parameter maps including |
create_empty_maps
¶
Create empty parameter maps when no voxels to fit.