Cleanup PATE code (#3033)
Cleanup PATE code (#3033)

* Format PATE docstrings

Uniform indentation

First pass of adding type hints

Remove commented out TF flags code

* Remove commented out print statements in PATE code

* Change blank lines in PATE code

No blank lines after function doc strings

No blank lines immediately after control statements

Break up larger chunks of code

* Specify l and noise_eps when printing if cant compute sensitivity

Before this commit, incorrect noise/moments spammed console with identical statements

* Change torch/numpy sensitivity function type hints

* Add notice required under Apache 2.0 license that changes have been made to code

* Remove ellipses from List in type hints

Co-authored-by: Andrew Trask <ac6d3829c73b6b303e60ec0bd2eb999f388c87a8@gmail.com>
Co-authored-by: Karl Higley <0821cf763cd5aa19e3ea8599841d6cc9a772d397@gmail.com>

OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft