Skip to content

Commit 317c3b8

Browse files
authored
Add protobuf for geometric shredding. (#60)
* Add protobuf for geometric shredding. * Update the comments.
1 parent 55fc7a9 commit 317c3b8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/main/proto/wfa/virtual_people/common/model.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ message BranchNode {
115115
ConditionalMerge conditional_merge = 3;
116116
UpdateTree update_tree = 4;
117117
ConditionalAssignment conditional_assignment = 5;
118+
GeometricShredder geometric_shredder = 6;
118119
}
119120
}
120121

@@ -240,6 +241,24 @@ message UpdateTree {
240241
optional CompiledNode root = 1;
241242
}
242243

244+
// This is to update the target field value with some probability.
245+
// See https://colab.sandbox.google.com/drive/11C3CWcldUCrkZxUKvTkzhoxkocgKoP6k
246+
// for details.
247+
message GeometricShredder {
248+
// The shredding probability parameter psi, which corresponds to the
249+
// success probability parameter of geometric distribution as p = 1 − psi.
250+
optional float psi = 1;
251+
252+
// The field for the randomness.
253+
optional string randomness_field = 2;
254+
255+
// The field to apply the shredding to.
256+
optional string target_field = 3;
257+
258+
// The random seed for shredding.
259+
optional string random_seed = 4;
260+
}
261+
243262
message Multiplicity {
244263
oneof multiplicity_ref {
245264
// The constant expected multiplicity.

0 commit comments

Comments
 (0)