Result

class ionworkspipeline.Result(parameter_values, optimizer_result, callback_results)

A class to store the results of a ionworkspipeline.DataFit.

Parameters

parameter_valuesarray_like

The final values of the optimized parameters.

optimizer_resultscipy.optimize.OptimizeResult

The result object returned by the SciPy optimizer.

callback_resultsdict

The results collected by callbacks during optimization.

Attributes

parameter_valuesarray_like

The final values of the optimized parameters.

optimizer_resultscipy.optimize.OptimizeResult

The result object in the format returned by the SciPy optimizer.

callback_resultsdict

The results collected by callbacks during optimization, formatted as follows:

{
    "callback_name": {
        "data": ...,
        "options": ...,
        "initial_results": {
            "inputs": ...,
            "outputs": ...,
        },
        "fit_results": {
            "inputs": ...,
            "outputs": ...,
        },
    },
    ...
}

Notes

The specific attributes available in optimizer_result may vary depending on the optimization method used. Refer to SciPy’s documentation for a complete list of possible attributes.

Extends: builtins.dict