Skip to content

Commit

Permalink
Add protobuf for geometric shredding. (#60)
Browse files Browse the repository at this point in the history
* Add protobuf for geometric shredding.

* Update the comments.
  • Loading branch information
tcsnfkx authored Jun 26, 2023
1 parent 55fc7a9 commit 317c3b8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/proto/wfa/virtual_people/common/model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ message BranchNode {
ConditionalMerge conditional_merge = 3;
UpdateTree update_tree = 4;
ConditionalAssignment conditional_assignment = 5;
GeometricShredder geometric_shredder = 6;
}
}

Expand Down Expand Up @@ -240,6 +241,24 @@ message UpdateTree {
optional CompiledNode root = 1;
}

// This is to update the target field value with some probability.
// See https://colab.sandbox.google.com/drive/11C3CWcldUCrkZxUKvTkzhoxkocgKoP6k
// for details.
message GeometricShredder {
// The shredding probability parameter psi, which corresponds to the
// success probability parameter of geometric distribution as p = 1 − psi.
optional float psi = 1;

// The field for the randomness.
optional string randomness_field = 2;

// The field to apply the shredding to.
optional string target_field = 3;

// The random seed for shredding.
optional string random_seed = 4;
}

message Multiplicity {
oneof multiplicity_ref {
// The constant expected multiplicity.
Expand Down

0 comments on commit 317c3b8

Please sign in to comment.