Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nadavaviv opened this issue Jul 4, 2021 · 0 comments
Labels
Type: Question ❔ Question about implementation or some technical aspect

Comments

@nadavaviv
Copy link

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 nadavaviv added the Type: Question ❔ Question about implementation or some technical aspect label Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question ❔ Question about implementation or some technical aspect
Projects
None yet
Development

No branches or pull requests

1 participant