Japanese
言語
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



TrainableModel.score

abstract TrainableModel.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 for X.

  • sample_weight (Optional[ndarray]) – Sample weights. Default is None.

戻り値の型

float

戻り値

a float score of the model.