2019-03-25 11:20:41 -06:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "dp_query",
|
|
|
|
srcs = ["dp_query.py"],
|
2019-05-13 12:28:33 -06:00
|
|
|
deps = [
|
|
|
|
"//third_party/py/distutils",
|
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
2019-03-25 11:20:41 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "gaussian_query",
|
|
|
|
srcs = ["gaussian_query.py"],
|
|
|
|
deps = [
|
|
|
|
":dp_query",
|
|
|
|
":normalized_query",
|
2019-05-06 15:50:04 -06:00
|
|
|
"//third_party/py/distutils",
|
2019-03-25 11:20:41 -06:00
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "gaussian_query_test",
|
2019-05-06 15:50:04 -06:00
|
|
|
size = "small",
|
2019-03-25 11:20:41 -06:00
|
|
|
srcs = ["gaussian_query_test.py"],
|
|
|
|
deps = [
|
|
|
|
":gaussian_query",
|
|
|
|
":test_utils",
|
|
|
|
"//third_party/py/absl/testing:parameterized",
|
2019-05-06 15:50:04 -06:00
|
|
|
"//third_party/py/numpy",
|
|
|
|
"//third_party/py/six",
|
2019-03-25 11:20:41 -06:00
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "no_privacy_query",
|
|
|
|
srcs = ["no_privacy_query.py"],
|
|
|
|
deps = [
|
|
|
|
":dp_query",
|
2019-05-06 15:50:04 -06:00
|
|
|
"//third_party/py/distutils",
|
2019-03-25 11:20:41 -06:00
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "no_privacy_query_test",
|
2019-05-06 15:50:04 -06:00
|
|
|
size = "small",
|
2019-03-25 11:20:41 -06:00
|
|
|
srcs = ["no_privacy_query_test.py"],
|
|
|
|
deps = [
|
|
|
|
":no_privacy_query",
|
|
|
|
":test_utils",
|
|
|
|
"//third_party/py/absl/testing:parameterized",
|
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "normalized_query",
|
|
|
|
srcs = ["normalized_query.py"],
|
|
|
|
deps = [
|
|
|
|
":dp_query",
|
2019-05-06 15:50:04 -06:00
|
|
|
"//third_party/py/distutils",
|
2019-03-25 11:20:41 -06:00
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "normalized_query_test",
|
2019-05-06 15:50:04 -06:00
|
|
|
size = "small",
|
2019-03-25 11:20:41 -06:00
|
|
|
srcs = ["normalized_query_test.py"],
|
|
|
|
deps = [
|
|
|
|
":gaussian_query",
|
|
|
|
":normalized_query",
|
|
|
|
":test_utils",
|
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "nested_query",
|
|
|
|
srcs = ["nested_query.py"],
|
|
|
|
deps = [
|
|
|
|
":dp_query",
|
2019-05-06 15:50:04 -06:00
|
|
|
"//third_party/py/distutils",
|
2019-03-25 11:20:41 -06:00
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "nested_query_test",
|
2019-05-06 15:50:04 -06:00
|
|
|
size = "small",
|
2019-03-25 11:20:41 -06:00
|
|
|
srcs = ["nested_query_test.py"],
|
|
|
|
deps = [
|
|
|
|
":gaussian_query",
|
|
|
|
":nested_query",
|
|
|
|
":test_utils",
|
|
|
|
"//third_party/py/absl/testing:parameterized",
|
2019-05-06 15:50:04 -06:00
|
|
|
"//third_party/py/distutils",
|
|
|
|
"//third_party/py/numpy",
|
2019-03-25 11:20:41 -06:00
|
|
|
"//third_party/py/tensorflow",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "test_utils",
|
|
|
|
srcs = ["test_utils.py"],
|
|
|
|
deps = [],
|
|
|
|
)
|