pgmpy / pgmpy

Python Library for learning (Structure and Parameter), inference (Probabilistic and Causal), and simulations in Bayesian Networks.

Home Page:https://pgmpy.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is there a example of `sensitivity analysis`

Jchaokai opened this issue · comments

Subject of the issue

i can't find some docs of sensitivity analysis
i'm just want to get the result of one node‘s sensitivity in a BayesNetwork.

for the example:

from pgmpy.utils import get_example_model

model = get_example_model('cancer') 
print(model.nodes)
# ['Pollution', 'Smoker', 'Cancer', 'Xray', 'Dyspnoea']

how to get the Sensitivity of node Smoker to other nodes, is there a example?