-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
Optim is a rather heavy dependency, especially since the optimisation problem in kde_lscv appears to be fairly straightforward.
I therefore experimented with a simple golden section search - and it works well. It seems as if Optim could be dropped and the short golden section search code (a total of 18 lines) could be added to the package.
The key parts of the code are a follows:
hGSS = golden_section_searchX(hlb, hub,0.0001) do h
... [current loss function]
end
function golden_section_searchX(f, a, b, ϵ)
... [standard code, 16 lines]
end
tpapp, piever, mschauer and vilim
Metadata
Metadata
Assignees
Labels
No labels