jax_privacy.execution_plan.ExecutionPlanConfig

jax_privacy.execution_plan.ExecutionPlanConfig#

class jax_privacy.execution_plan.ExecutionPlanConfig(*args, **kwargs)[source]#

Bases: Protocol

Protocol for configs that build a DPExecutionPlan.

Any config that produces a DPExecutionPlan from PerformanceFlags satisfies this protocol (e.g. BandMFConfig). Consuming a config rather than a pre-built plan lets callers read performance-only settings (such as the aggregation dtype) directly from the PerformanceFlags without materializing the plan.

Methods

__init__

make

Returns a DPExecutionPlan configured with performance_flags.

make(performance_flags=None, noise_seed=None)[source]#

Returns a DPExecutionPlan configured with performance_flags.

Parameters:
  • performance_flags (PerformanceFlags | None) – Optional performance flags controlling implementation details such as dtype, sharding, and microbatching.

  • noise_seed (int | None) – Optional seed for the noise-addition RNG. If None, a fresh random seed is drawn; pass an explicit seed for multi-host coordination or reproducible tests (and keep it secret in production deployments).

Return type:

DPExecutionPlan