Skip to content

Commit

Permalink
feat: release skmodels (#59)
Browse files Browse the repository at this point in the history
include PortfolioSelection, NonlinearSelection, RobustRegression
  • Loading branch information
bbayukari authored Nov 27, 2023
1 parent 02e7074 commit 2e50f14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions skscope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
)
from .base_solver import BaseSolver
from .numeric_solver import convex_solver_nlopt
from .skmodel import PortfolioSelection, NonlinearSelection, RobustRegression

__all__ = [
"ScopeSolver",
Expand All @@ -31,4 +32,7 @@
"ForwardSolver",
"OMPSolver",
"convex_solver_nlopt",
"PortfolioSelection",
"NonlinearSelection",
"RobustRegression",
]
2 changes: 1 addition & 1 deletion skscope/skmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def custom_objective(alpha):
return loss

solver = ScopeSolver(p, sparsity=self.sparsity)
alpha = solver.solve(custom_objective)
alpha = solver.solve(custom_objective, jit=True)
self.coef_ = np.abs(alpha)
return self

Expand Down

0 comments on commit 2e50f14

Please sign in to comment.