Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2.1.1 #24

Merged
merged 6 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from setuptools import find_packages, setup

INSTALL_REQUIRES = ["cvxpy~=1.4", "numpy~=1.26", "scipy~=1.12"]
INSTALL_REQUIRES = ["cvxpy~=1.5", "numpy~=2.1", "scipy~=1.14"]

THIS_FILE_DIR = os.path.dirname(__file__)

Expand All @@ -13,7 +13,7 @@
LONG_DESCRIPTION = f.read()

# The full version, including alpha/beta/rc tags
RELEASE = "2.1.0"
RELEASE = "2.1.1"
# The short X.Y version
VERSION = ".".join(RELEASE.split(".")[:2])

Expand Down
4 changes: 2 additions & 2 deletions src/elexsolver/QuantileRegressionSolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ def _fit_with_regularization(
Fits quantile regression with regularization
TODO: convert this problem to use the dual like in the non regularization case
"""
arguments = {"ECOS": {"max_iters": 10000}}
arguments = {cp.CLARABEL: {"max_iter": 10000}}
coefficients = cp.Variable((x.shape[1],))
y_hat = x @ coefficients
residual = y - y_hat
loss_function = cp.sum(cp.multiply(weights, 0.5 * cp.abs(residual) + (tau - 0.5) * residual))
loss_function += lambda_ * self._get_regularizer(coefficients, regularize_intercept, n_feat_ignore_reg)
objective = cp.Minimize(loss_function)
problem = cp.Problem(objective)
problem.solve(solver="ECOS", **arguments.get("ECOS", {}))
problem.solve(solver=cp.CLARABEL, **arguments.get(cp.CLARABEL, {}))
return coefficients.value

def fit(
Expand Down
Loading