PyDP
PyDP copied to clipboard
How to execute a differentially private `Count` on a dataset of non-numeric values
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