Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions dpsynth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from dpsynth._checkpoint import checkpoint
from dpsynth.data_generation_v3 import TabularConfig
from dpsynth.data_generation_v3 import TabularMechanism
from dpsynth.data_generation_v3 import TabularSynthesizer
from dpsynth.discrete_mechanisms.discrete import DiscreteConfig
from dpsynth.discrete_mechanisms.discrete import DiscreteMechanism
from dpsynth.domain import CategoricalAttribute
Expand Down Expand Up @@ -68,7 +67,6 @@
'Schema',
'TabularConfig',
'TabularMechanism',
'TabularSynthesizer',
'api',
'calibrate',
'checkpoint',
Expand Down
14 changes: 0 additions & 14 deletions dpsynth/data_generation_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from collections.abc import Mapping, Sequence
import dataclasses
import warnings

from absl import logging
import dp_accounting
Expand Down Expand Up @@ -537,16 +536,3 @@ def configure(
initializers=calibrated_inits,
max_records_per_user=max_records_per_user,
)


@dataclasses.dataclass(frozen=True, kw_only=True)
class TabularSynthesizer(TabularConfig):
"""Deprecated. Use TabularConfig and TabularMechanism instead."""

def __post_init__(self):
warnings.warn(
'TabularSynthesizer is deprecated. Use TabularConfig for configuration '
'and TabularMechanism for the calibrated runnable mechanism.',
DeprecationWarning,
stacklevel=2,
)
8 changes: 0 additions & 8 deletions tests/data_generation_v3_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,6 @@ def test_configure_schema_with_constraints(self):
calibrated = config.configure(schema, zcdp_rho=100.0)
self.assertEqual(calibrated.schema.constraints, (mock_constraint,))

def test_tabular_synthesizer_deprecated(self):
with self.assertWarnsRegex(
DeprecationWarning,
'TabularSynthesizer is deprecated. Use TabularConfig for configuration '
'and TabularMechanism for the calibrated runnable mechanism.',
):
data_generation_v3.TabularSynthesizer(domains={})

def test_compress_columns(self):
domains = {
'A': domain.CategoricalAttribute(
Expand Down
Loading