I have 634 *.npy files, each contain a 2D numpy array of shape (8194, 76). I want to use STL decomposition on each column five time with different frequencies. so what I'm trying to do is:
for file in files: for column in columns: for freq in frequencies: res = STL(file[:,column], period = freq) decomposed = np.vstack((res.trend, res.seasonal, res.resid)).T np.save(decompoesd) finally the shape of decomposed should be (8194,1140). How can I parallize this? as it would take over 2 months to run in serial implementation.