bd2kccd / py-causal

Other
204 stars 50 forks source link

Inconsistent notebook example output #97

Open xxxiaol opened 4 years ago

xxxiaol commented 4 years ago

When I run py-causal/example/py-causal - Bootstrapping GFCI Discrete in Action.ipynb, all edges printed are of score 1.000, like this:

Graph Edges:

  1. air --> speech [air --> speech dd nl]:1.0000; dd nl
  2. ar_c --> o_ar_u [ar_c --> o_ar_u dd nl]:1.0000; dd nl
  3. ar_u --> o_ar_u [ar_u --> o_ar_u dd nl]:1.0000; dd nl
  4. bone --> air [air <-- bone dd nl]:1.0000; dd nl
  5. class --> o_ar_c [class --> o_ar_c dd nl]:1.0000; dd nl
  6. history_buzzing --> history_fullness [history_buzzing --> history_fullness dd nl]:1.0000; dd nl
  7. history_buzzing --> m_m_sn_gt_2k [history_buzzing --> m_m_sn_gt_2k dd nl]:1.0000; dd nl
  8. history_dizziness --> history_nausea [history_dizziness --> history_nausea dd nl]:1.0000; dd nl
  9. history_fluctuating --> m_sn_lt_1k [history_fluctuating --> m_sn_lt_1k dd nl]:1.0000; dd nl
  10. history_fluctuating --> static_normal [history_fluctuating --> static_normal dd nl]:1.0000; dd nl

Rollback to v1.1.1 gives the right output. Could you please fix the example?

chirayukong commented 4 years ago

Thanks for notifying this. Will update this example then.