hosa.models.rnn.rnn_models.RNNRegression.score

RNNRegression.score(x, y, **kwargs)[source]

Computes the performance metrics on the given input data and target values.

Parameters
  • x (numpy.ndarray) – Input data.

  • y (numpy.ndarray) – Target values (i.e., real numbers).

  • **kwargsIgnored. Only included here for compatibility’s sake.

Returns

tuple – Returns a tuple containing the mean squared error (MSE) and coefficient of determination (\(R^2\)).