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

Overflow in cumprod (relative difference transformation) #179

Closed
antoinecarme opened this issue Feb 20, 2022 · 2 comments
Closed

Overflow in cumprod (relative difference transformation) #179

antoinecarme opened this issue Feb 20, 2022 · 2 comments

Comments

@antoinecarme
Copy link
Owner

antoinecarme commented Feb 20, 2022

This is a bug. When building a PyAF model with this dataset, a lot of warnings are issued.

Dataset :

df = pd.DataFrame()
N = 1000
lTimeVar = 'Time'
lSignalVar = 'Signal'
df[lTimeVar] = pd.date_range("2018-01-01", periods=N, freq="H")
df[lSignalVar] = np.random.random(df.shape[0]) 

Output :

INFO:pyaf.std:START_TRAINING 'Signal'
/home/antoine/.local/lib/python3.9/site-packages/numpy/core/fromnumeric.py:57: RuntimeWarning: overflow encountered in accumulate
  return bound(*args, **kwds)
/home/antoine/.local/lib/python3.9/site-packages/numpy/core/fromnumeric.py:57: RuntimeWarning: overflow encountered in accumulate
  return bound(*args, **kwds)
/home/antoine/.local/lib/python3.9/site-packages/numpy/core/fromnumeric.py:57: RuntimeWarning: overflow encountered in accumulate
  return bound(*args, **kwds)
/home/antoine/.local/lib/python3.9/site-packages/numpy/core/fromnumeric.py:57: RuntimeWarning: overflow encountered in accumulate
  return bound(*args, **kwds)
/home/antoine/.local/lib/python3.9/site-packages/numpy/core/fromnumeric.py:57: RuntimeWarning: overflow encountered in accumulate
  return bound(*args, **kwds)

@antoinecarme
Copy link
Owner Author

Fixed.

1 similar comment
@antoinecarme
Copy link
Owner Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant