imblearn.ensemble.EasyEnsembleClassifier.decision_function¶
-
EasyEnsembleClassifier.
decision_function
(X)[source]¶ Average of the decision functions of the base classifiers.
- Parameters
- X{array-like, sparse matrix} of shape (n_samples, n_features)
The training input samples. Sparse matrices are accepted only if they are supported by the base estimator.
- Returns
- scorendarray of shape (n_samples, k)
The decision function of the input samples. The columns correspond to the classes in sorted order, as they appear in the attribute
classes_
. Regression and binary classification are special cases withk == 1
, otherwisek==n_classes
.