← 返回卡片

原书出处

Causal AI

核验版本的摘录快照 · 导入于 2026-11-14T08:43:24.524Z

predictive = Predictive(data_model, guide=guide, num_samples=1000) #1 predictive_samples_all = predictive(data) #1 predictive_samples = predictive_samples_all["In-game Purchases"] #1 for i, sample_data in enumerate(predictive_samples): #2 if i == 0: #2 sns.kdeplot(sample_data, #2 color="lightgrey", label="Predictive density") #2 else: #2 sns.kdeplot(sample_data, #2 color="lightgrey", linewidth=0.2, alpha=0.5) #2 sns.kdeplot( #3 data['In-game Purchases'], #3 color="black", #3 linewidth=1, #3 label="Empirical density" #3 ) #3

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-11.xhtml

EPUB SHA-256:e55e7dc9d7966ea79311f2bc8d5bef7371a6dbb65240f11a2b3e44180b934e72