RJT1990 / pyflux

Open source time series library for Python
BSD 3-Clause "New" or "Revised" License
2.1k stars 240 forks source link

Fix memory leak #135

Closed TolganLight closed 5 years ago

TolganLight commented 5 years ago

Y_exp = Y.copy() mu_exp = mu.copy()

The above 2 lines cause memory leaks. Added del statements at the end of method so that the copies are Garbage collected.

vd1371 commented 4 years ago

Use np.copy() instead of .copy() in the arma.py and the memory leak problem will be solved.

It's a huge pain in the a** when predict is in a loop. It fills the memory in less than 50 attempts.