-
Notifications
You must be signed in to change notification settings - Fork 0
/
ppx.fbs
132 lines (108 loc) · 1.51 KB
/
ppx.fbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// ppx
// 0.1.3
//
// Probabilistic programming execution protocol
// https://github.com/probprog/ppx
//
namespace ppx;
union MessageBody {
Handshake,
HandshakeResult,
Run,
RunResult,
Sample,
SampleResult,
Observe,
ObserveResult,
Tag,
TagResult,
Reset
}
table Message {
body: MessageBody;
}
table Tensor {
data: [double];
shape: [int];
}
union Distribution {
Normal,
Uniform,
Categorical,
Poisson,
Beta,
Gamma,
LogNormal,
Exponential,
Weibull
}
table Handshake {
system_name: string;
}
table HandshakeResult {
system_name: string;
model_name: string;
}
table Run {}
table RunResult {
result: Tensor;
}
table Sample {
address: string;
name: string;
distribution: Distribution;
control: bool = true;
replace: bool = false;
}
table SampleResult {
result: Tensor;
}
table Observe {
address: string;
name: string;
distribution: Distribution;
value: Tensor;
}
table ObserveResult {}
table Tag {
address: string;
name: string;
value: Tensor;
}
table TagResult {}
table Reset {}
table Normal {
mean: Tensor;
stddev: Tensor;
}
table Uniform {
low: Tensor;
high: Tensor;
}
table Categorical {
probs: Tensor;
}
table Poisson {
rate: Tensor;
}
table Beta {
low: Tensor;
high: Tensor;
}
table Gamma {
concentration: Tensor;
rate: Tensor;
}
table LogNormal {
mean: Tensor;
stddev: Tensor;
}
table Exponential {
rate: Tensor;
}
table Weibull {
scale: Tensor;
concentration: Tensor;
}
root_type Message;
file_identifier "PPXF";