-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix nightly 2.0 #720
Fix nightly 2.0 #720
Conversation
echo "Installing $pkg nightly" | ||
micromamba remove -y --force $pkg | ||
pip install --pre --no-deps --only-binary :all: --upgrade --timeout=60 -i $PRE_WHEELS $pkg | ||
done | ||
echo Install pyarrow nightly | ||
micromamba remove -y --force pyarrow | ||
pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ --prefer-binary --pre --no-deps pyarrow |
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.
np.log(min_alpha), | ||
self.n_alphas, | ||
base=np.e, | ||
dtype=X.dtype, |
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.
Added the dtype here. It was causing issues with 32-bit runs because the alphas were set to be 64 bits, and this would upcast downstream variables when multiplying, causing typing issues with our C++ code.
@@ -1631,7 +1635,7 @@ def _wald_test_matrix( | |||
# We want to calculate Rb_r^T (RVR)^{-1} Rb_r. | |||
# We can do it in a more numerically stable way by using `scipy.linalg.solve`: | |||
try: | |||
test_stat = float(Rb_r.T @ linalg.solve(RVR, Rb_r)) |
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.
not allowed anymore with numpy 2.0
Fixing glum to support numpy 2.0. Here is a summary of the changes:
np.Inf
->np.inf
Checklist
CHANGELOG.rst
entry