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

BUG: Fix index error when values exceed 999T #581

Conversation

degenfabian
Copy link
Contributor

Hi!

This PR is an intended fix of the bug presented in issue #370. I fixed the IndexError by falling back to using the scientific notation once values become larger than 999T. I also added a test case which tests that exact functionality and with this modification I was able to solve the IndexError.

@degenfabian degenfabian force-pushed the fix-IndexError-when-values-exceed-999T branch from cba66ad to 4e587fa Compare October 24, 2024 07:05
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.80%. Comparing base (18adc5a) to head (adb823d).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #581      +/-   ##
===========================================
+ Coverage    75.77%   75.80%   +0.03%     
===========================================
  Files           72       72              
  Lines         9078     9081       +3     
===========================================
+ Hits          6879     6884       +5     
+ Misses        2199     2197       -2     
Flag Coverage Δ
bdist_linux_310_python 75.39% <100.00%> (+0.16%) ⬆️
bdist_linux_311_python 75.47% <100.00%> (+0.12%) ⬆️
bdist_linux_312_python 75.27% <100.00%> (-0.07%) ⬇️
bdist_linux_39_python 75.45% <100.00%> (+0.12%) ⬆️
bdist_mac_310_python 75.59% <100.00%> (+0.08%) ⬆️
bdist_mac_311_python 75.59% <100.00%> (-0.03%) ⬇️
bdist_mac_312_python 75.52% <100.00%> (-0.09%) ⬇️
bdist_mac_39_python 75.65% <100.00%> (+0.12%) ⬆️
bdist_win_310_python 75.55% <100.00%> (-0.10%) ⬇️
bdist_win_311_python 75.66% <100.00%> (+0.11%) ⬆️
bdist_win_312_python 75.60% <100.00%> (+0.08%) ⬆️
bdist_win_39_python 75.55% <100.00%> (+0.04%) ⬆️
sdist_linux_310_python 75.31% <100.00%> (-0.05%) ⬇️
sdist_linux_311_python 75.38% <100.00%> (+<0.01%) ⬆️
sdist_linux_312_python 75.31% <100.00%> (+<0.01%) ⬆️
sdist_linux_39_python 75.17% <100.00%> (-0.05%) ⬇️
sdist_mac_310_python 75.55% <100.00%> (+0.19%) ⬆️
sdist_mac_311_python 75.55% <100.00%> (+0.03%) ⬆️
sdist_mac_312_python 75.34% <100.00%> (-0.18%) ⬇️
sdist_mac_39_python 75.45% <100.00%> (+0.05%) ⬆️
sdist_win_310_python 75.55% <100.00%> (+0.03%) ⬆️
sdist_win_311_python 75.58% <100.00%> (+<0.01%) ⬆️
sdist_win_312_python 75.66% <100.00%> (+0.03%) ⬆️
sdist_win_39_python 75.65% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@degenfabian degenfabian force-pushed the fix-IndexError-when-values-exceed-999T branch from 1db8fe7 to adb823d Compare October 24, 2024 07:34
@degenfabian degenfabian changed the title Fix index error when values exceed 999T BUG: Fix index error when values exceed 999T Oct 24, 2024
@paulbkoch
Copy link
Collaborator

Thanks @degenfabian. It's great to have this finally fixed!

@paulbkoch paulbkoch merged commit 34b8d58 into interpretml:develop Oct 24, 2024
57 checks passed
@degenfabian degenfabian deleted the fix-IndexError-when-values-exceed-999T branch October 24, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants