diprism / perpl

The PERPL Compiler
MIT License
10 stars 5 forks source link

Syntax for target FGG #1

Closed davidweichiang closed 3 years ago

davidweichiang commented 3 years ago

I think JSON is probably the most straightforward syntax. The parts that seem the most up in the air are specifications for random variables and factors.

  1. Discrete random variables: each variable type can be a list of values, and each factor can either be a constant tensor or a tensor of parameters to be learned.
davidweichiang commented 3 years ago

Here's my first attempt: https://github.com/diprism/compiler/blob/master/hmm.json