gemseo / utils / metrics

Show inherited members

squared_error_metric module

A squared-error metric.

class gemseo.utils.metrics.squared_error_metric.SquaredErrorMetric[source]

Bases: BaseMetric[_InputT, _InputT]

A squared error metric.

static compute(a, b)[source]

Evaluate the metric.

Parameters:
  • a (_InputT) – A first quantity.

  • b (_InputT) – A second quantity.

Returns:

The metric associated with a and b.

Return type:

_InputT