> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clickml.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Linear Regression component

> Fit an ordinary least squares linear regression model to predict continuous targets, with optional intercept fitting and coefficient inspection.

**Linear Regression** models the target as a weighted sum of the input features. It is the simplest and most interpretable regression model.

## Configuration

| Parameter         | Description                                            | Default |
| ----------------- | ------------------------------------------------------ | ------- |
| **Fit Intercept** | Whether to include a bias/intercept term in the model. | `true`  |

## Input / Output

|        | Type                  |
| ------ | --------------------- |
| Input  | `X Train` + `Y Train` |
| Output | Trained Model         |

## When to use

Best when the relationship between features and target is approximately linear. **Scale features** before using this model. Check for multicollinearity if using many correlated features.
