Spaces:
Running
Running
Christoph Hemmer
commited on
Commit
·
694a9cb
1
Parent(s):
fcd5728
hyperfix
Browse files
dynamix/preprocessing_utilities.py
CHANGED
|
@@ -6,7 +6,6 @@ import random
|
|
| 6 |
from statsmodels.tsa.stattools import acf
|
| 7 |
from scipy.ndimage import gaussian_filter1d
|
| 8 |
from scipy import optimize
|
| 9 |
-
from scipy.optimize import curve_fit
|
| 10 |
|
| 11 |
|
| 12 |
class TimeSeriesProcessor:
|
|
@@ -463,7 +462,7 @@ class Detrending:
|
|
| 463 |
'maxcor': 10
|
| 464 |
}
|
| 465 |
)
|
| 466 |
-
optimal_params = np.round(result.x,
|
| 467 |
|
| 468 |
# Calculate trend and detrend the data
|
| 469 |
t = np.arange(1, seq_length + 1)
|
|
|
|
| 6 |
from statsmodels.tsa.stattools import acf
|
| 7 |
from scipy.ndimage import gaussian_filter1d
|
| 8 |
from scipy import optimize
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
class TimeSeriesProcessor:
|
|
|
|
| 462 |
'maxcor': 10
|
| 463 |
}
|
| 464 |
)
|
| 465 |
+
optimal_params = np.round(result.x, 3)
|
| 466 |
|
| 467 |
# Calculate trend and detrend the data
|
| 468 |
t = np.arange(1, seq_length + 1)
|