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
{{ message }}
Repository navigation
Commit b3ec8a3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/pem.jl
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ using Optim, Optim.LineSearches
53
53
optimizer = BFGS(
54
54
linesearch = LineSearches.BackTracking(),
55
55
),
56
-
autodiff = :forward,
56
+
autodiff = AutoForwardDiff(),
57
57
store_trace = true,
58
58
show_trace = true,
59
59
show_every = 50,
@@ -90,7 +90,7 @@ If a manually provided initial guess `sys0`, this must also be scaled appropriat
90
90
- `focus`: `prediction` or `:simulation`. If `:simulation`, the `K` matrix will be zero.
91
91
- `h`: Prediction horizon for the prediction error filter. Large values of `h` makes the problem computationally expensive. As `h` approaches infinity, the problem approaches the `focus = :simulation` case.
92
92
- `optimizer`: One of Optim's optimizers
93
-
- `autodiff`: Whether or not to use forward-mode AD to compute gradients. `:forward` (default) for forward-mode AD, or `:finite` for finite differences.
93
+
- `autodiff`: Whether or not to use forward-mode AD to compute gradients. `AutoForwardDiff()` (default) for forward-mode AD, or `AutoFiniteDiff()` for finite differences.
94
94
- `metric`: The metric used to measure residuals. Try, e.g., `abs` for better resistance to outliers.
95
95
The rest of the arguments are related to `Optim.Options`.
96
96
- `regularizer`: A function of the parameter vector and the corresponding `PredictionStateSpace/StateSpace` system that can be used to regularize the estimate.
0 commit comments