mirapy.fitting.optimizers

Module Contents

class mirapy.fitting.optimizers.ParameterEstimation(x, y, model, loss_function, callback=None)

Base class of parameter estimation of a model using regression.

Parameters
  • x – Array of input values.

  • y – Array of target values.

  • model – Model instance.

  • loss_function – Instance of loss function.

  • callback – Callback function.

regression_function(self, params)

Return the output of loss function.

Parameters

params – Array of new parameters of the model.

Returns

Output of loss function.

get_model(self)

Returns a copy of model used in estimation.

Returns

Model instance.

fit(self)

Fits the data into the model using regression.

Returns

Returns the result.