SklearnModelAdapter.score#
- SklearnModelAdapter.score(X, y, **kwargs)[source]#
Return per-output \(R^2\) scores from the sklearn model.
- Parameters:
X (
Any) – Predictor matrix.y (
Any) – Observed outcomes.**kwargs (
Any) – Additional keyword arguments forwarded tosklearn.metrics.r2_score(), such assample_weight. These are not forwarded to the underlying estimator’sscoremethod.multioutputis fixed to"raw_values"so each treated unit receives its ownunit_{i}_r2entry.
- Returns:
One
unit_{i}_r2entry per output. Point estimates carry no dispersion entries.- Return type:
pd.Series