3zhang/Python-Lasso-ElasticNet-Ridge-Regression-with-Customized-Penalties

An extension of sklearn's Lasso/ElasticNet/Ridge model to allow users to customize the penalties of different covariates. Works similar to penalty.factor parameter in R's glmnet.

20
/ 100
Experimental

This tool helps data scientists, statisticians, and researchers refine their predictive models when they have specific knowledge about which factors are most important. It takes your dataset and your expert judgments about the importance of each predictor, and it outputs a more accurate and interpretable regression model. This is especially useful for those who want their models to reflect real-world insights beyond what standard algorithms provide.

No commits in the last 6 months.

Use this if you are building a regression model and have prior domain knowledge that certain predictors should be more (or less) strongly weighted than others, or should not be penalized at all.

Not ideal if you prefer a 'black box' approach where all predictors are treated equally by the regularization algorithm without manual intervention or if you only need standard Lasso, Elastic Net, or Ridge regression.

predictive-modeling statistical-analysis regression-analysis feature-selection quantitative-research
Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 4 / 25
Maturity 16 / 25
Community 0 / 25

How are scores calculated?

Stars

7

Forks

Language

Jupyter Notebook

License

BSD-2-Clause

Last pushed

Apr 28, 2023

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/3zhang/Python-Lasso-ElasticNet-Ridge-Regression-with-Customized-Penalties"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.