Class PrivacyAccountantBase
- Namespace
- AiDotNet.FederatedLearning.Privacy.Accounting
- Assembly
- AiDotNet.dll
Base class for privacy accountants.
public abstract class PrivacyAccountantBase : FederatedLearningComponentBase<double>, IPrivacyAccountant
- Inheritance
-
PrivacyAccountantBase
- Implements
- Derived
- Inherited Members
Methods
AddRound(double, double, double)
Records a single privacy event (typically one federated learning round).
public abstract void AddRound(double epsilon, double delta, double samplingRate)
Parameters
epsilondoubleThe epsilon value used for this event.
deltadoubleThe delta value used for this event.
samplingRatedoubleThe client participation rate for this event (0.0 to 1.0).
GetAccountantName()
Gets the name of this privacy accountant implementation.
public abstract string GetAccountantName()
Returns
GetEpsilonAtDelta(double)
Gets a reported epsilon value at a given target delta (if supported by the accountant).
public abstract double GetEpsilonAtDelta(double targetDelta)
Parameters
targetDeltadoubleThe delta to report epsilon for.
Returns
GetTotalDeltaConsumed()
Gets the total delta consumed so far according to this accountant.
public abstract double GetTotalDeltaConsumed()
Returns
GetTotalEpsilonConsumed()
Gets the total epsilon consumed so far according to this accountant.
public abstract double GetTotalEpsilonConsumed()