Closed linyu21 closed 3 years ago
Hi @linyu21,
To be honest I can't tell what's exactly the cause of the issue from your report. You'd need to share some data or reproduce the issue with a generic script.
From the traceback:
You receive a TypeError when using CEEMDAN. That error actually comes from Scipy's cubic interpolation method and it is saying that it cannot interpolate as it cannot validate input signal. Specifically, it can't use numpy's isnan
function on what is supposed to be x
(or min extrema).
My guess is that for some reason there's been only one min extremum (i.e. len(extrema[0]) == 1
) and more than 3 max extrema. That's super suspicious. CEEMDAN adds noise to each generation making decomposition different each time. Since you went ahead to report this I'm guessing that you were consistently getting this issue. This means that there's likely a bigger cause.
Thank you for your reply. This error has occurred since the update of tensorflow2. X. now I use another method to replace EMD.
I thought that this issue didn't require follow up but looking at it from perspective it might benefit from conclusion.
PyEMD does not support formats other than Python lists, numpy ndarray or anything that's fully compatible with either. Especially it doesn't work with pandas dataframes and tensorflow records which have unusual APIs. For machine learning application please convert data to numpy ndarray first.
I miss a problem in my project.
TypeError