> 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/discriminant-analysis.md).

# Discriminant Analysis

LinearDiscriminantAnalysis/QuadraticDiscriminantAnalysis

## Common

### Input Data

|                    | Inputs                                                                                                                             |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| **\*Target Data**  | Data Input                                                                                                                         |
| **\*Model Name**   | Name of the user-defined linear/quadratic 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 (numeric)**  | <p>User-selected columns to be x.</p><ul><li>One or more columns should be selected.</li></ul>                                     |
| **\*y (numeric)**  | <p>User-selected columns to be y.</p><ul><li>Only one column should be selected.</li></ul>                                         |

![\[Task information of LinearDiscriminantAnalysis\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MLbT3zkI7v5yzYaFIcE%2F-MLbVEbHRGx3i8j8nb67%2Fimage.png?alt=media\&token=ed824f26-72a8-49a7-826f-06c751c9808c)

## Workflow Example

## Python Package

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

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