tsadar.inverse.fitter#
Functions
|
Fits the Thomson scattering spectral density function to experimental data or plots specified spectra based on the provided configuration. |
|
- tsadar.inverse.fitter.fit(config) Tuple[DataFrame, float]Source#
Fits the Thomson scattering spectral density function to experimental data or plots specified spectra based on the provided configuration.
- Parameters:
config (dict) – Configuration dictionary containing all necessary parameters for data loading, fitting, and postprocessing.
- Returns:
Tuple[pd.DataFrame, float] – - A pandas DataFrame containing the final fitted parameters or processed results. - A float representing the overall loss value from the fitting procedure.
Notes
The function logs metrics and status tags to MLflow for experiment tracking.
The fitting procedure can handle both angular and 1D spectra, depending on the configuration.
Data preparation, fitting, and postprocessing are modularized for clarity and extensibility.