You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,11 @@ To use the backend from [andersoncd](https://github.com/mathurinm/andersoncd) yo
58
58
# Example
59
59
60
60
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
+
61
66
```python
62
67
from ya_glm.estimator_getter import get_pen_glm
63
68
from ya_glm.toy_data import sample_sparse_multinomial, sample_sparse_lin_reg
0 commit comments