Skip to content
Open
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
15 changes: 0 additions & 15 deletions bin/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion bin/derive_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from absl import flags
from absl import logging
from dpsynth import domain
from dpsynth.bin import _read_csv_args
from bin import _read_csv_args
import fancyflags as ff
import numpy as np
import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion bin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from absl import app
from absl import flags
import dpsynth
from dpsynth.bin import _read_csv_args
from bin import _read_csv_args
import fancyflags as ff
import pandas as pd

Expand Down
2 changes: 1 addition & 1 deletion bin/run_data_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import apache_beam as beam
from dpsynth import data_generation
from dpsynth import domain
from dpsynth.bin import _proto_class_flag
from bin import _proto_class_flag
from dpsynth.dataset_descriptors import csv_descriptor
from dpsynth.dataset_descriptors import proto_descriptors
from dpsynth.dataset_descriptors import tfrecord_descriptor
Expand Down
4 changes: 2 additions & 2 deletions bin/run_tabular_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import apache_beam as beam
from dpsynth.dataset_descriptors import dataset_descriptor
from dpsynth.dataset_descriptors import proto_descriptors
from dpsynth.eval import tabular_eval
from dpsynth.eval import types
from eval import tabular_eval
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
from google.protobuf import text_format
import pandas as pd
Expand Down
15 changes: 0 additions & 15 deletions eval/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions eval/attribute_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import dataclasses
from typing import Any

from dpsynth.eval import correlation_computation
from dpsynth.eval import types
from eval import correlation_computation
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
import pipeline_dp
from pipeline_dp import pipeline_functions
Expand Down
2 changes: 1 addition & 1 deletion eval/correlation_computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from collections.abc import Iterable
import itertools
from typing import Any
from dpsynth.eval import types
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
import numpy as np
import pipeline_dp
Expand Down
2 changes: 1 addition & 1 deletion eval/marginal_total_variance.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import itertools
from typing import Any

from dpsynth.eval import types
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
import pipeline_dp

Expand Down
2 changes: 1 addition & 1 deletion eval/one_way_distribution_computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from collections.abc import Iterable
from typing import Any
from dpsynth.eval import types
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
import numpy as np
import pipeline_dp
Expand Down
10 changes: 5 additions & 5 deletions eval/tabular_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from typing import Any

import apache_beam as beam
from dpsynth.eval import attribute_statistics
from dpsynth.eval import correlation_computation
from dpsynth.eval import marginal_total_variance
from dpsynth.eval import one_way_distribution_computation
from dpsynth.eval import types
from eval import attribute_statistics
from eval import correlation_computation
from eval import marginal_total_variance
from eval import one_way_distribution_computation
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
import pipeline_dp

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ version = {attr = "dpsynth.__version__"}

[tool.setuptools.packages.find]
namespaces = false

[tool.pytest.ini_options]
pythonpath = ["."]
2 changes: 1 addition & 1 deletion tests/bin/_read_csv_args_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from absl.testing import absltest
from absl.testing import parameterized
from dpsynth.bin import _read_csv_args
from bin import _read_csv_args


class ReadCsvArgsTest(parameterized.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/bin/derive_domain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from absl.testing import absltest
from dpsynth import domain
from dpsynth.bin import derive_domain
from bin import derive_domain
import numpy as np
import pandas as pd

Expand Down
4 changes: 2 additions & 2 deletions tests/eval/attribute_statistics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

from absl.testing import absltest
from dpsynth.eval import attribute_statistics
from dpsynth.eval import types
from eval import attribute_statistics
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
import pipeline_dp

Expand Down
4 changes: 2 additions & 2 deletions tests/eval/correlation_computation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

from absl.testing import absltest
from dpsynth.eval import correlation_computation
from dpsynth.eval import types
from eval import correlation_computation
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
import pipeline_dp

Expand Down
2 changes: 1 addition & 1 deletion tests/eval/marginal_total_variance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from absl.testing import absltest
from dpsynth.eval import marginal_total_variance
from eval import marginal_total_variance
import pipeline_dp


Expand Down
2 changes: 1 addition & 1 deletion tests/eval/one_way_distribution_computation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

from absl.testing import absltest
from dpsynth.eval import one_way_distribution_computation
from eval import one_way_distribution_computation
from dpsynth.pipeline_transformations import diagnostic_info
import pipeline_dp

Expand Down
4 changes: 2 additions & 2 deletions tests/eval/tabular_eval_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

from absl.testing import absltest
from dpsynth.eval import tabular_eval
from dpsynth.eval import types
from eval import tabular_eval
from eval import types
from dpsynth.pipeline_transformations import diagnostic_info
import pipeline_dp

Expand Down
Loading