probcomp / hierarchical-irm

Probabilistic structure discovery for rich relational systems
Apache License 2.0
1 stars 1 forks source link

Add a bigram distribution over strings. #13

Closed emilyfertig closed 1 month ago

emilyfertig commented 1 month ago

This adds a minimal bigram distribution over strings (#7 ), for now assuming the alphabet consists of printable ASCII characters.

I’m not at all confident in the logp_score implementation (summing the logp_scores of each conditional distribution), so I’d appreciate an extra pair of eyes on that especially.