opendp / smartnoise-core

Differential privacy validator and runtime
MIT License
290 stars 33 forks source link

remove optimizations for known-N 2-category histograms #361

Closed Shoeboxam closed 2 years ago

Shoeboxam commented 3 years ago

Instead of adjusting the runtime to postprocess a filtered count query, simply removes the optimization altogether, which is much easier. Use the following from the python bindings instead:

cat1_count = sn.count(sn.filter(data, data == cat1)).value
histogram = [cat1_count, N - cat1_count]

Closes #360