-
Notifications
You must be signed in to change notification settings - Fork 0
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
ELEX-4413 update dependencies and switch to using the Clarabel
solver
#22
ELEX-4413 update dependencies and switch to using the Clarabel
solver
#22
Conversation
oh interesting, do you know why they are switching away from ecos? |
Here's what I found: https://www.cvxpy.org/updates/#ecos-deprecation
🤔 |
ok, so I think we should just go for it with clarabel 👀 |
You know, I was just thinking the same thing 😂 🎉 |
@lennybronner switched! 🎉 |
cvxpy
solvercvxpy
solver~~ switch to using the Clarabel
solver
cvxpy
solver~~ switch to using the Clarabel
solverClarabel
solver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you run this locally with the model?
Yup! 🎉 Although, I haven't done a run with the testbed yet, and I do have some results I could compare to...let me see 🤔 |
Also when you run this, just confirm that you are using the cvxpy solver. that only gets used when we run quantile regression with regularization. |
Oh, right! 🤦🏻♀️ Ok, in that case, here's something interesting. This command runs just fine:
Now if I want to test the regularization, I switch to
And this second command throws a |
right, margin only works with the bootstrap model |
OMG 🙈 Wait, why is that? 🤔 |
because margin necessitates a whole bunch of math that we never implemented for the other models |
specifically, margin needs moving from normalized to unnormalized margin space a few times that we haven't implemented in the other models (to go from unit margins to aggregate margins for example). But specifically, this error suggests that a unit is coming through to the model that shouldn't be (we should be converting all margins from nan to zero). might be worth investigating. |
Oh wow! Yeah, that does sound possible. At some point in the post-GE future lol 🤔 Ok, in that case...how much testing is worth doing here? I can (now) get this to run fine:
Adding in regularization works but makes no difference in the output 🤔 Should I run some testbed commands with the current |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, this is good enough!
Description
Hi! The changes in this PR update
elex-solver
's dependencies to their latest versions andsilences a warning produced byswitchescvxpy
about the fact that we're still using theECOS
solverQuantileRegressionSolver
'scvxpy
solver fromECOS
toClarabel
🎉Switching fromECOS
tocvxpy
's recommendation ofCLARABEL
is pretty easy and will probably result in absolutely no changes in terms of the predictions produced by our model, but IMO that's something we'd want to test pretty extensively before making the switch 😬 So I'm silencing thewarning
here percvxpy
's recommendation.Jira Ticket
ELEX-4413
Test Steps
tox
and/orpip install -e .
and run theelexmodel
and/or test bed commands of your choice 🎉