Feature/intervention#63
Conversation
zhanwen-xin
left a comment
There was a problem hiding this comment.
All good from my side
|
Hi, When I try to launch the example I got a return of a bug : Traceback (most recent call last): Is it only from my side ? |
@MichelWU99 I think you need to uninstall and install pytagi again. Do |
MichelWU99
left a comment
There was a problem hiding this comment.
All good from my side after uninstalling and installing pytagi
Description
This PR introduces the intervention feature to
modelandskf. Users can make interventions in two ways: (1) add interventions (at single or multiple time steps) tomeanandvariancefor a specific hidden state directly, and (2) create an extra hidden state for intervention underInterventioncomponent, then specify the hidden state which will be added the intervention.Note: at the moment, when using (2), should add one
interventionhidden state per intervention event.Changes Made
model.filter,model.forecast,skf.filter,Data_processRelated Issue(s)
NA.
Checklist
main(or relevant) branch.Notes for Reviewers
Run:
python -m examples.intervention_directfor testingmodel: multiple interventions, directly modify hidden states.python -m examples.intervention_add_statefor testingmodel: a single intervention, add intervention hidden state.python -m examples.skf_intervention_directfor testingskf.python -m examples.skf_intervention_add_statefor testingskf.