MCPcopy Index your code
hub / github.com/scikit-learn/scikit-learn / predict

Method predict

sklearn/multioutput.py:824–837  ·  view source on GitHub ↗

Predict on the data matrix X using the ClassifierChain model. Parameters ---------- X : {array-like, sparse matrix} of shape (n_samples, n_features) The input data. Returns ------- Y_pred : array-like of shape (n_samples, n_classes)

(self, X)

Source from the content-addressed store, hash-verified

822 return self
823
824 def predict(self, X):
825 """Predict on the data matrix X using the ClassifierChain model.
826
827 Parameters
828 ----------
829 X : {array-like, sparse matrix} of shape (n_samples, n_features)
830 The input data.
831
832 Returns
833 -------
834 Y_pred : array-like of shape (n_samples, n_classes)
835 The predicted values.
836 """
837 return self._get_predictions(X, output_method="predict")
838
839 def __sklearn_tags__(self):
840 tags = super().__sklearn_tags__()

Callers 1

scoreMethod · 0.45

Calls 1

_get_predictionsMethod · 0.95

Tested by

no test coverage detected