module sklapi.sklearn_base_regressor
#
Short summary#
module mlinsights.sklapi.sklearn_base_regressor
Implements SkBaseRegressor
.
Classes#
class |
truncated documentation |
---|---|
Defines a custom regressor. |
Methods#
method |
truncated documentation |
---|---|
constructor |
|
Returns the mean accuracy on the given test data and labels. |
Documentation#
Implements SkBaseRegressor
.
- class mlinsights.sklapi.sklearn_base_regressor.SkBaseRegressor(**kwargs)#
Bases:
SkBaseLearner
Defines a custom regressor.
constructor
- __init__(**kwargs)#
constructor
- score(X, y=None, sample_weight=None)#
Returns the mean accuracy on the given test data and labels.
- Parameters:
X – Training data, numpy array or sparse matrix of shape [n_samples,n_features]
y – Target values, numpy array of shape [n_samples, n_targets] (optional)
sample_weight – Weight values, numpy array of shape [n_samples, n_targets] (optional)
- Returns:
score : float, Mean accuracy of self.predict(X) wrt. y.