原书出处
Causal AI
log_importance_weight = model_log_prob - proposal_log_prob #4 sample = (king_text, kingdom_text, log_importance_weight) return sample #1 Extract a sample from the proposal. #2 Calculate the total log probability of the sampled values of King and Kingdom. #3 Calculate the total log probability of the sample values of King and Kingdom under the original model. #4 Calculate the log importance weight. Now we’ll run the importance resampling. Listing
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-13.xhtml
EPUB SHA-256:e55e7dc9d7966ea79311f2bc8d5bef7371a6dbb65240f11a2b3e44180b934e72