Implement a sampler that samples from the Chinese restaurant process. Repeatedly resample assignment of customers to tables
Question:
Implement a sampler that samples from the Chinese restaurant process. Repeatedly resample assignment of customers to tables and plot a histogram over the number of tables. Investigate how the histogram changes as you change \(\alpha\).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
A First Course In Machine Learning
ISBN: 9781498738484
2nd Edition
Authors: Simon Rogers , Mark Girolam
Question Posted: