mirapy.fitting.losses

Module Contents

mirapy.fitting.losses.negative_log_likelihood(y_true, y_pred)

Function for negative log-likelihood error.

Parameters
  • y_true – Array of true values.

  • y_pred – Array of predicted values.

Returns

Float. Loss value.

mirapy.fitting.losses.mean_squared_error(y_true, y_pred)

Function for mean squared error.

Parameters
  • y_true – Array of true values.

  • y_pred – Array of predicted values.

Returns

Float. Loss value.