Table of Contents

Enum DifferentialPrivacyMode

Namespace
AiDotNet.Models.Options
Assembly
AiDotNet.dll

Specifies where differential privacy noise is applied in the federated learning pipeline.

public enum DifferentialPrivacyMode

Fields

Central = 2

Apply noise on the server after aggregation.

Local = 1

Apply noise on clients before sending updates.

LocalAndCentral = 3

Apply both local and central differential privacy.

None = 0

No differential privacy is applied.

Remarks

For Beginners: Differential privacy can be applied at different points:

  • Local DP: each client adds noise before sending updates (stronger protection vs server).
  • Central DP: the server adds noise after aggregation (simpler and often higher utility).
  • Both: apply local and central DP for defense-in-depth.