Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/aindo/anonymize/techniques/perturbation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ class PerturbationNumerical(BasePerturbation, Generic[NumericsT]):
If not set, the range is automatically computed as the minimum and maximum of the input data.
"""

sampling_mode: SamplingMode = "uniform"
sampling_mode: SamplingMode = "weighted"
perturbation_range: tuple[NumericsT, NumericsT] | None = None

def __init__(
self,
alpha: float,
sampling_mode: SamplingMode = "uniform",
sampling_mode: SamplingMode = "weighted",
perturbation_range: tuple[NumericsT, NumericsT] | None = None,
**kwargs: SeedT,
) -> None:
Expand Down Expand Up @@ -113,13 +113,13 @@ class PerturbationCategorical(BasePerturbation):
Automatically computed if not provided.
"""

sampling_mode: SamplingMode = "uniform"
sampling_mode: SamplingMode = "weighted"
frequencies: dict[str, float] | None = None

def __init__(
self,
alpha: float,
sampling_mode: SamplingMode = "uniform",
sampling_mode: SamplingMode = "weighted",
frequencies: dict[str, float] | None = None,
**kwargs: SeedT,
) -> None:
Expand Down