PyDP icon indicating copy to clipboard operation
PyDP copied to clipboard

How to execute a differentially private `Count` on a dataset of non-numeric values

Open nadavaviv opened this issue 4 years ago • 0 comments

Question

How can I use the pydp.algorithms.laplacian.Count object with a set of non-numeric values? When I try to use this object over an Input of ["A", "B", "C"] I get this output

TypeError: result(): incompatible function arguments. The following argument types are supported:
    1. (self: _algorithms.CountInt, arg0: List[int]) -> int

Invoked with: <_algorithms.CountInt object at 0x11285a1f0>, ['A', 'B', 'C']

Is there a way to execute this action?

Thanks

nadavaviv avatar Jul 04 '21 15:07 nadavaviv