hosa.models.cnn.cnn_models.CNNRegression.score

CNNRegression.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\)).