-
Notifications
You must be signed in to change notification settings - Fork 129
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] BORF failing without numba #2245
Comments
I've investigated this bug and here is some information I found useful :
import time
_get_norm_bins(5)
t0 = time.time()
for i in range(100000):
_get_norm_bins(256)
t1 = time.time()
print(t1 - t0)
@nb.vectorize(cache=True)
def _ppf(x, mu=0, std=1):
w = -math.log((1 - (2 * x - 1)) * (1 + (2 * x - 1)))
if w < 5:
w = w - 2.5
p = 2.81022636e-08
p = 3.43273939e-07 + p * w
p = -3.5233877e-06 + p * w
p = -4.39150654e-06 + p * w
p = 0.00021858087 + p * w
p = -0.00125372503 + p * w
p = -0.00417768164 + p * w
p = 0.246640727 + p * w
p = 1.50140941 + p * w
else:
w = math.sqrt(w) - 3
p = -0.000200214257
p = 0.000100950558 + p * w
p = 0.00134934322 + p * w
p = -0.00367342844 + p * w
p = 0.00573950773 + p * w
p = -0.0076224613 + p * w
p = 0.00943887047 + p * w
p = 1.00167406 + p * w
p = 2.83297682 + p * w
p = p * x
return mu + math.sqrt(2) * p * std |
@aeon-actions-bot assign @Cyril-Meyer |
was also looking at this but came to a different solution 🙂.
Issue is that our test disabling numba jit does not work on vectorise for whatever reason. Either can work really, this one will allow the functions to be tracked in test coverage, but not sure if it will be slower. |
though mine still rasises an error... https://github.com/aeon-toolkit/aeon/actions/runs/11517193530/job/32061397931?pr=2249#step:7:1636 Will test yours (added the tag to your PR), would just go with that if it works. |
Describe the bug
the BORF transformer fails when numpy turned off, in for example, the overnight codecov tests here
https://github.com/aeon-toolkit/aeon/actions/runs/11491231670
its standard numba stuff, should be quite easy to track down
Steps/Code to reproduce the bug
set
Run numba-disabled codecov tests
on any PR
Expected results
pass test
Actual results
Versions
No response
The text was updated successfully, but these errors were encountered: