> For the complete documentation index, see [llms.txt](https://hwasumok.gitbook.io/r-flow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hwasumok.gitbook.io/r-flow/python/machine-learning/multioutput-regression-and-classification.md).

# Multioutput regression and classification

MultiOutputClassifier/MultiOutputRegressor

## Common

### Input Data

|                    | Inputs                                                                                                                             |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| **\*Target Data**  | Data Input                                                                                                                         |
| **\*Model Name**   | Name of the user-defined multi classifier model                                                                                    |
| **Predict Output** | <p>If not empty, the model will additionally make prediction on <strong>Target Data</strong> and store</p><p> the result here.</p> |
| **Merge Data**     | Predict Output will be created with predicted labels concatenated to Merge Data.                                                   |
| **\*x**            | <p>User-selected columns to be x.</p><ul><li>One or more columns should be selected.</li></ul>                                     |
| **\*y**            | <p>User-selected columns to be y.</p><ul><li>Two or more columns should be selected.</li></ul>                                     |

### Defining estimators

In **Arguments,** you have to define a classification estimator for **MultiOutputClassifier** and a regression estimator for **MultiOutputRegressor**.

[**About R-Flow estimators**](https://hwasumok.gitbook.io/r-flow/python/machine-learning/estimator)&#x20;

![\[Task information of MultiOutputClassifier\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MKZZZOFIWSscL_9k7Qp%2F-MKZZajvb1z5Ac_AduJg%2Fimage.png?alt=media\&token=e08e36df-0101-4417-8145-94358c2f65c9)

## Workflow Example

[R-Flow Task Example Video: MultiOutputRegressor](https://www.youtube.com/watch?v=W19RfBIfcMc)

## Python Package

**MultiOutputClassifier**: <https://scikit-learn.org/stable/modules/generated/sklearn.multioutput.MultiOutputClassifier.html>

**MultiOutputRegressor**: <https://scikit-learn.org/stable/modules/generated/sklearn.multioutput.MultiOutputRegressor.html>
