NeuralNetworkClassifier.score¶
- NeuralNetworkClassifier.score(X, y, sample_weight=None)[sorgente]¶
Returns a score of this model given samples and true values for the samples. In case of classification this should be mean accuracy, in case of regression the coefficient of determination \(R^2\) of the prediction.
- Parametri:
X (np.ndarray) – Test samples.
y (np.ndarray) – True values for
X
.sample_weight (np.ndarray | None) – Sample weights. Default is
None
.
- Tipo di ritorno:
- Ritorna:
a float score of the model.