# shrinkage.ClusteredLasso

Shrinkage for Python · 0.2.0

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/packages/python/src/shrinkage/penalty.py>)

<a id="constructor"></a>

```python
ClusteredLasso(l1: float, fusion: float)
```

L1 plus uniform all-pairs fusion of signed coefficient values.

The penalty is \`\`l1 \* sum(abs(beta)) + fusion \* sum(i\<j, abs(beta\[i\] - beta\[j\]))\`\`. Strengths must be finite and nonnegative. Each unordered pair contributes once. The intercept is excluded.

<a id="l1"></a>

## `l1`

```python
l1: float
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/packages/python/src/shrinkage/penalty.py>)

<a id="fusion"></a>

## `fusion`

```python
fusion: float
```

[Source](<https://github.com/jolars/shrinkage/blob/eeafe449edce19d3c552a03060f681ae3891af74/packages/python/src/shrinkage/penalty.py>)
