-
Notifications
You must be signed in to change notification settings - Fork 17
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
Weekday adjustment to use Clarabel instead of ECOS #1966
Conversation
Since the python client bug is fixed, i reran the test actions. Now |
weird! @dshemetov do you know what caused that? |
@melange396 I'm gonna guess it's related to clarabel solver being made default recently in cvxpy instead of ecos. That test ran through the exact same code I'm making changes to. |
Yea, it's coming from differences in the solvers. Clarabel is a new Rust/Julia optimization library that supersedes ECOS, the previously default C optimizer, with more performant algorithms. Some details in this changelog. |
ah yes, the default changed with the new version, and it bit them in those other PRs not long after the release. This is an argument for using version pinning... I will create a GH issue for that. |
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.
Yep, glad to see this! Strange that they differ even in the 4th digit; I would've expected them to converge to 1e-8
Do we want to do more comparisons to try to better understand the impact of this change? At the very least, we will want to document any signals affected by this solver substitution and when it is actually applied to the data. Beyond just |
That would make sense; it's a thing to do after this has gone live and been run on the old data though, right? Added as a subtask on the Jira patch ticket Judging by the effect on the test case, it should cause changes on the order of ~.1%, which is probably not worth worrying about too much. If anything the values should be closer to the true optimum. |
Description
doctor_visits
signalsmoothed_adj_cli
has a bug where sometimes some percentage values are calculated to be abnormally big (90%+). We found out it's because of this ECOS solver used by default by cvxpy when calculating weekday adjustments.Per their recent update:
Changelog
Fixes