jax_privacy.keras_api.get_noise_multiplier#
- jax_privacy.keras_api.get_noise_multiplier(model)[source]#
Returns the noise multiplier used for DP-SGD training.
If the noise multiplier is not set in
DPKerasConfig, this will calibrate it once and cache the value on the model.- Parameters:
model (
Model) – A Keras model previously wrapped withmake_private().- Return type:
float- Returns:
The configured or calibrated noise multiplier.