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)
| 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__() |