Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#375 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cpp, python
Lĩnh vực
data, security

Hướng nghiên cứu

Start with pydp.algorithms.laplacian.Count and the Input call that produces the CountInt.result error. Check the Python wrapper's accepted argument types and related differential-privacy Count documentation. Done means resolving whether non-numeric values are supported and documenting or tracking the required change.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Type: Question :grey_question:

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

Ngôn ngữ chính
Python
Star
550
Fork
143
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenMined/PyDP

Tất cả issue của OpenMined/PyDP

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.