You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going through the tutorials trying different values for various parameters. I found an error. In tutorial 3 (cell 6):
dmd=MrDMD(svd_rank=6, max_level=7, max_cycles=1)
Instead of using svd_rank=-1, I used 6. I get a ZeroDivisionError.
I get a ZeroDivisionError for a dataset I am using as well. I was wondering if there are some guidelines on which parameters to use to avoid such errors, or is it the case that there is a bug in the code.
~/anaconda3/envs/pydmd/lib/python3.7/site-packages/pydmd/mrdmd.py in reconstructed_data(self)
79 np.array([
80 self.partial_reconstructed_data(i)
---> 81 for i in range(self.max_level)
82 ]),
83 axis=0)
~/anaconda3/envs/pydmd/lib/python3.7/site-packages/pydmd/mrdmd.py in (.0)
79 np.array([
80 self.partial_reconstructed_data(i)
---> 81 for i in range(self.max_level)
82 ]),
83 axis=0)
~/anaconda3/envs/pydmd/lib/python3.7/site-packages/past/utils/init.py in old_div(a, b)
93 return a // b
94 else:
---> 95 return a / b
96
97 all = ['PY3', 'PY2', 'PYPY', 'with_metaclass', 'native', 'old_div']
ZeroDivisionError: float division by zero
The text was updated successfully, but these errors were encountered:
@fnauman Thank you for reporting this problem. It looks the sampling step becomes zero changing the truncation in SVD. I'll investigate better, anyway we will implement some useful warnings for this kind of errors.
I was going through the tutorials trying different values for various parameters. I found an error. In tutorial 3 (cell 6):
Instead of using svd_rank=-1, I used 6. I get a ZeroDivisionError.
I get a ZeroDivisionError for a dataset I am using as well. I was wondering if there are some guidelines on which parameters to use to avoid such errors, or is it the case that there is a bug in the code.
Thanks for making your package available.
The text was updated successfully, but these errors were encountered: