Skip to content

Idee für Umsetzung allgemeiner benutzerspezifizierter Verlustfunktionen #11

@schreibe

Description

@schreibe

Dies ist auch ein Kommentar im Quellcode irgendwo, ich kopiere ihn hierher zur besseren Übersicht.
Dies würde mindestens die Funktionen doDMtest und doGWtest betreffen, in FEP_tests_other.inp.

TODO: Allow for further loss functions in future

/* Idea for an interface (Sven, December 2022):

-- The string b.lossfunc = "<funcname>" would refer to an
  active/loaded user func
 (errorif( b.loss == 0 && (!inbundle(b,"lossfunc") || b.lossfunc=="")))
-- Such a user func would have to have the following signature:
  args: series y (realization), series f (forecasts)
  return value: series loss  
-- b.lossfunc == "U" (or quad) could be used instead of b.loss == 1,
  and b.lossfunc == "V" instead of b.loss == 2
-- Then for the non-U and non-V cases we would simply do:
  series L = feval(b.lossfunc, e1, e2)
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions