Skip to content

Commit

Permalink
Merge pull request #2 from CederGroupHub/group_l0
Browse files Browse the repository at this point in the history
Group l0 and best group estimators
  • Loading branch information
lbluque authored May 23, 2022
2 parents c872b7e + 41ea49a commit f5b47bf
Show file tree
Hide file tree
Showing 7 changed files with 850 additions and 394 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ Available regression models
- Lasso (`sklearn` may be a better option)
- Group Lasso, Overlap Group Lasso & Sparse Group Lasso
- Adaptive versions of Lasso, Group Lasso, Overlap Group Lasso & Sparse Group Lasso
- Best subset selection, L1L0 & L2L0 (we recommend using `gurobi` for performance)
- Best subset selection, ridged best subset, L0, L1L0 & L2L0
(`gurobi` recommended for performance)
- Best group selection, ridged best group selection, grouped L0, grouped L2L0
(`gurobi` recommended for performance)

Installation
------------
Expand Down
34 changes: 22 additions & 12 deletions sparselm/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,31 @@

from sparselm.model.ols import OrdinaryLeastSquares
from sparselm.model.lasso import Lasso
from sparselm.model.mixedL0 import L1L0, L2L0
from sparselm.model.miqp.best_subset import BestSubsetSelection, BestGroupSelection, \
RidgedBestSubsetSelection, RidgedBestGroupSelection
from sparselm.model.miqp.regularized_l0 import L1L0, L2L0, RegularizedL0, GroupedL0, \
GroupedL2L0
from sparselm.model.lasso import Lasso, GroupLasso, OverlapGroupLasso, SparseGroupLasso
from sparselm.model.adaptive_lasso import AdaptiveLasso, AdaptiveGroupLasso, \
AdaptiveOverlapGroupLasso, AdaptiveSparseGroupLasso

__all__ = [
'OrdinaryLeastSquares',
'Lasso',
'L1L0',
'L2L0',
'GroupLasso',
'OverlapGroupLasso',
'SparseGroupLasso',
'AdaptiveLasso',
'AdaptiveGroupLasso',
'AdaptiveOverlapGroupLasso',
'AdaptiveSparseGroupLasso',
"OrdinaryLeastSquares",
"Lasso",
"BestSubsetSelection",
"BestGroupSelection",
"RidgedBestSubsetSelection",
"RidgedBestGroupSelection",
"RegularizedL0",
"L1L0",
"L2L0",
"GroupedL0",
"GroupedL2L0",
"GroupLasso",
"OverlapGroupLasso",
"SparseGroupLasso",
"AdaptiveLasso",
"AdaptiveGroupLasso",
"AdaptiveOverlapGroupLasso",
"AdaptiveSparseGroupLasso",
]
121 changes: 0 additions & 121 deletions sparselm/model/best_subset.py

This file was deleted.

Empty file added sparselm/model/miqp/__init__.py
Empty file.
Loading

0 comments on commit f5b47bf

Please sign in to comment.