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

# Lasso Regressor

>  Lasso Regression adds L1 regularization to linear regression, which can shrink irrelevant feature coefficients to exactly zero. This means Lasso not only predicts values but also performs automatic feature selection.

It is the best choice when you suspect only a subset of your features is truly relevant. 

<Note>
  **Regularization strength (alpha) tuning is critical**

  * If alpha is too large → underfitting.
  * If alpha is too small → behaves like ordinary linear regression.
</Note>

### Use Cases

* **Parametric design optimization**
* **Energy performance prediction**: Predict building energy consumption based on geometric and spatial characteristics.
* **Cost estimation models**: Predict construction costs based on geometric measurements of building elements.
* **Structural performance approximation**: Predict structural performance based on geometric and spatial characteristics.

<a href="/images/ML/Lasso Regressor.png" target="_blank">
  <img src="https://mintcdn.com/shapely/k8EK4RW_OYOqKd74/images/ML/Lasso%20Regressor.png?fit=max&auto=format&n=k8EK4RW_OYOqKd74&q=85&s=ac7798965496d7a7dd4e1314349c05e3" className="pointer-events-none" style={{ borderRadius: '0.5rem', border: '1px solid rgba(0,0,0,0.1)' }} width="1809" height="1018" data-path="images/ML/Lasso Regressor.png" />
</a>
