exa.core.model_selection_fitter.preprocessing.prepare_fit_context

exa.core.model_selection_fitter.preprocessing.prepare_fit_context#

prepare_fit_context(processed_dataset, independent_vars)#

Compute and bundle shared fit metadata, producing a FitContext.

Parameters:
  • processed_dataset (tuple[DataArray, list[str], dict]) – Output of _process_dataset: (xr.DataArray, list of remaining dims, coord_to_main_mapping dict).

  • independent_vars (dict[str, Any]) – Mapping from model variable names to dataset coordinate names.

Returns:

Fully assembled fit context holding all metadata for model fit.

Return type:

FitContext