Mentions légales du service

Skip to content
Snippets Groups Projects
  1. Jul 22, 2024
  2. Feb 08, 2024
  3. Dec 04, 2023
  4. Aug 30, 2023
  5. Jul 26, 2023
  6. Feb 23, 2023
  7. Feb 22, 2023
    • ANDREY Paul's avatar
      Enhance unit tests to take device-placement policy into account. · 996b22a6
      ANDREY Paul authored
      Core changes to the global test suite:
      * Add some device-placement verifications to the generic Model test
        suite. This should be refactored into more unitary tests as part
        of a distinct effort to revise and improve this test suite.
      * For TensorFlow and Torch, parametrize the whole test suite to run
        either on CPU and GPU, and run it once per available device type.
      * Ensure Vector and OptiModule unit tests run on CPU.
      
      Changes to some 'Model' tests to run on GPU:
      * `test_compute_batch_gradients_np`: allow for small numerical
        discrepancies that may result from running the test on GPU.
      * `test_apply_updates`: correct the test, that had not been
        updated since `Model.get_weights` stopped to systematically
        use `NumpyVector` as return type.
      
      Changes to 'TorchModel' tests to run on GPU:
      * Override `test_serialization` due to torch-serialization relying
        on pickle. Replace pickles' comparison with a more shallow (but
        less susceptible to fail for unknown reasons) test that ensures
        a reloaded model shares the same structure of modules.
      996b22a6
  8. Feb 06, 2023
  9. Jan 26, 2023
  10. Jan 05, 2023
    • BIGAUD Nathan's avatar
      Refactor some optimizer unit test code, moving some to `declearn.test_utils`. · 3b2cfdbd
      BIGAUD Nathan authored and ANDREY Paul's avatar ANDREY Paul committed
      
      * Move up the listing of frameworks and the mock-gradient-vectors-generating
        util class to a new private submodule of `declearn.test_utils`.
      * Add a shared framework-providing fixture to the optimizer tests' module.
      * Harmonize relative imports' code (preserving the `sys.path` trick).
      
      Co-authored-by: default avatarPaul Andrey <paul.andrey@inria.fr>
      3b2cfdbd
    • BIGAUD Nathan's avatar
      Implement abstract and gaussian noise-addition optimizer modules. · a50b810f
      BIGAUD Nathan authored and ANDREY Paul's avatar ANDREY Paul committed
      
      * Implement `GaussianNoiseModule`, to enable adding gaussian noise
        to step-wise batch-averaged gradients as part of local DP-SGD or
        to clients-averaged updates as part of central DP-SGD.
      * Implement an abstract `NoiseModule` layer, paving the way for
        other noise-addition mechanisms.
      
      This commit squashes some incremental work by multiple authors:
      * Nathan Bigaud implemented `GaussianNoiseModule` after doing the
        scientific and technical review of requirements, notably as to
        the use of a cryptographically-safe RNG.
      * Paul Andrey abstracted part of the code into the `NoiseModule`
        class, fixed some pending todos, and adjusted unit tests.
      
      Co-authored-by: default avatarPaul Andrey <paul.andrey@inria.fr>
      a50b810f
  11. Nov 21, 2022
  12. Oct 11, 2022
    • ANDREY Paul's avatar
      Reformat code files using black. · 2af02340
      ANDREY Paul authored
      * Run [black](https://github.com/psf/black/) to reformat the existing codebase.
      * Add a limited amount of `# fmt: off` comments to protect some code blocks that
        are believed to achieve better readability in their previous form.
      * Add (limited) black configuration parameters to `pyproject.toml` for their use
        by any contributor to declearn.
      2af02340
  13. Sep 20, 2022
Loading