Skip to content

Commit 49f7579

Browse files
committed
up
1 parent e04e6b6 commit 49f7579

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ To use the backend from [andersoncd](https://github.com/mathurinm/andersoncd) yo
5858
# Example
5959

6060

61+
There are two main objects Est and EstCV; the former fits a single penalized GLM (think [sklearn.linear_model.Lasso](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html)) and the latter tunes the penalized GLM using cross-validation while making use of a faster path algorithm if available (think [sklearn.linear_model.LassoCV](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LassoCV.html)). Both are sklearn compatible.
62+
63+
Because there are many loss + penalty combinations we programmatically generate the Est and EstCV classes.
64+
65+
6166
```python
6267
from ya_glm.estimator_getter import get_pen_glm
6368
from ya_glm.toy_data import sample_sparse_multinomial, sample_sparse_lin_reg

0 commit comments

Comments
 (0)