原书出处
Causal AI
pyro.module("confounder_2_engagement", confounders_2_engagement) #2 pyro.module("confounder_2_purchases", purchases_network) #2 two = tensor(2., device=device) five = tensor(5., device=device) params = { 'ρ_member': sample('ρ_member', Beta(five, five)), #3 'ρ_won_engaged': sample('ρ_won_engaged', Beta(five, two)), #4 'ρ_won_not_engaged': sample('ρ_won_not_engaged', Beta(two, five)), #5 } N = len(data["In-game Purchases"]) with plate("N", N): #6 model(params) #6 render_model(data_model, (data, )) #1 Initialize the neural networks. #2 pyro.module lets Pyro know about all the parameters inside the networks. #3 Sample
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-11.xhtml
EPUB SHA-256:e55e7dc9d7966ea79311f2bc8d5bef7371a6dbb65240f11a2b3e44180b934e72