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

Geometric Mechanism Local DP for SKLearn Pipeline

Đang mở
#388 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, scikit-learn
Lĩnh vực
machine-learning

Hướng nghiên cứu

Start with src/pydp/ml/mechanisms/sklearn_pipeline.py and the SKLearn_Pipeline_Laplace_Mechanism.ipynb example. Compare the existing LaplaceMechanism operator with the Geometric Mechanism's initialization parameters and the Pipeline usage shown in the issue. Done means GeometricMechanism can be inserted between Pipeline steps in the demonstrated style.

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

Mô tả

Type: New Feature :heavy_plus_sign:

Feature Description

Enabling the use of Geometric Mechanism for Local DP in SKLean Pipeline. This should be in the form of an "operator" that should be inserted between the layers in SKLearn's Pipeline class.

Additional Context

Current development for the SKLean Pipeline is in branch feature/machine-learning-1.

Preferably, the name of the "operator" imported from PyDP should be called GeometricMechanism. The use should be as seamless and convenient as possible in SKLearn's Pipeline class. For example:

pipe = Pipeline([
    ('scaler', StandardScaler()),
    ('laplace', GeometricMechanism()), 
    ('nb', GaussianNB())
])

For more examples, please have look at the notebook example of Laplace Mechanism's implementation.

As starting guidance, please refer to the source code for LaplaceMechanism in here.

Note: the Geometric Mechanism would most likely need different parameters to be initialized compare to the Laplace Mechanism.

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.