OpenMined / PipelineDP

PipelineDP is a Python framework for applying differentially private aggregations to large datasets using batch processing systems such as Apache Spark, Apache Beam, and more.
https://pipelinedp.io/
Apache License 2.0
270 stars 75 forks source link

Type annotation polishings #475

Closed dvadym closed 11 months ago

dvadym commented 11 months ago

This PR contains the following changes:

  1. Replacement pipeline_dp.Metrics -> pipeline.Metric (the difference: the type of metrics is pipeline.Metric, pipeline_dp.Metrics is a storage of of different metrics).
  2. Replacement pipeline_dp.budget_accountant.MechanismSpec -> budget_accountant.MechanismSpec (because the former doesn't work in Colab)