darsia.AbstractModelObjective#
- class AbstractModelObjective[source]#
Bases:
objectAbstract class for defining an objective function to be called in ConcentrationAnalysis.calibrate_model().
Methods
calibrate_model(images, options[, plot_result])Utility for calibrating the model used in darsia.ConcentrationAnalysis.
define_objective_function(input_images, ...)Abstract method to define an objective function.
update_model_for_calibration(parameters, options)Wrapper for updating the model, depending on whether it is a single model or a combined model.
- calibrate_model(images, options, plot_result=False)[source]#
Utility for calibrating the model used in darsia.ConcentrationAnalysis.
NOTE: Require to combine darsia.ConcentrationAnalysis with a calibration model mixin via multiple inheritance.
- Parameters:
- images
listofdarsia.Image Calibration images.
- options
dict Container holding tuning information for the numerical calibration routine.
- plot_resultbool
Flag controlling whether the calibration is displayed in a plot.
- images
- Returns:
- bool
Success of the calibration study.
- abstractmethod define_objective_function(input_images, images_diff, times, options)[source]#
Abstract method to define an objective function.
- Returns:
callable()Objective function.
- update_model_for_calibration(parameters, options)[source]#
Wrapper for updating the model, depending on whether it is a single model or a combined model.
- Parameters:
- parameters
np.ndarray Model parameters,
- options
dict Further tuning parameters and extra info; here, the key “dofs” is used to determine which dofs to update.
- parameters