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
Copy file name to clipboardExpand all lines: pynumdiff/optimize/_optimize.py
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
from ..polynomial_fitimportpolydiff, savgoldiff, splinediff
15
15
from ..basis_fitimportspectraldiff, rbfdiff
16
16
from ..total_variation_regularizationimporttvrdiff, velocity, acceleration, jerk, iterative_velocity, smooth_acceleration, jerk_sliding
17
-
from ..kalman_smoothimportrtsdiff, constant_velocity, constant_acceleration, constant_jerk, robustdiff
17
+
from ..kalman_smoothimportrtsdiff, constant_velocity, constant_acceleration, constant_jerk, robustdiff, robustdiffclassic
18
18
from ..linear_modelimportlineardiff
19
19
20
20
# Map from method -> (search_space, bounds_low_hi)
@@ -96,6 +96,11 @@
96
96
'log_r': (-5, 16),
97
97
'proc_huberM': (0, 6),
98
98
'meas_huberM': (0, 6)}),
99
+
robustdiffclassic: ({'order': {1, 2, 3}, # warning: order 1 hacks the loss function when tvgamma is used, tends to win but is usually suboptimal choice in terms of true RMSE
100
+
'log_qr_ratio': [kforkinrange(-1, 16, 4)],
101
+
'huberM': [0., 5, 20]}, # 0. so type is float. Good choices here really depend on the data scale
102
+
{'log_qr_ratio': (-1, 18),
103
+
'huberM': (0, 1e2)}), # really only want to use l2 norm when nearby
99
104
lineardiff: ({'kernel': 'gaussian',
100
105
'order': 3,
101
106
'gamma': [1e-1, 1, 10, 100],
@@ -117,7 +122,7 @@
117
122
118
123
# This function has to be at the top level for multiprocessing but is only used by optimize.
0 commit comments