bias

typhon.retrieval.scores.bias(y_pred, y_test)[source]

The mean bias in percent.

\[\text{BIAS}(\mathbf{y}, \mathbf{y}_{true}) = \frac{100\%}{n}\sum_{i = 0}^n \frac{y_{\text{pred},i} - y_{\text{true},i}} {y_{\text{true},i}}\]
Parameters:
  • y_pred (numpy.array) – The predicted scalar values.

  • y_test (numpy.array) – The true values.

Returns:

The mean bias in percent.