-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vscgpm: make default implementation of ``observers'' #240
Comments
fsaad
changed the title
Make default implementation of ``observers'' in VentureScript CGPM
vscgpm: make default implementation of ``observers''
Jan 15, 2018
fsaad
pushed a commit
that referenced
this issue
Jan 15, 2018
Requries user who overrides one observer to override them all. Consider using a dictionary for user to override only some observers.
fsaad
pushed a commit
that referenced
this issue
Jan 15, 2018
Requries user who overrides one observer to override them all. Consider using a dictionary for user to override only some observers.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the user is expected to provide a list in the inference language named
observers
which contains the observation function for each simulator defined thesimulators
list (which lives in the modelling language).The default pattern for the observation functions looks like:
whereas a custom observation function might be:
The first pattern can and should be fully automated by the vscgpm wrapper. The user can then "override" the default observation by defining a dictionary mapping output index to desired observer function, e.g.
The above code tells vscgpm that the observer for output index 0 (i.e.
sim_period
) is theobs_period
procedure, whereassim_cluster_id
andsim_error
should be observed using the "default pattern".The text was updated successfully, but these errors were encountered: