NeuralNetworkRegressor.score¶
- NeuralNetworkRegressor.score(X, y, sample_weight=None)[स्रोत]¶
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.
- मापदण्ड
X (
ndarray
) -- Test samples.y (
ndarray
) -- True values forX
.sample_weight (
Optional
[ndarray
]) -- Sample weights. Default isNone
.
- प्रदत्त प्रकार
float
- प्रदत्त
a float score of the model.