opendp.smartnoise.core.value package

opendp.smartnoise.core.value.detect_atomic_type(array)[source]
opendp.smartnoise.core.value.parse_array(value)[source]
opendp.smartnoise.core.value.parse_array1d(array)[source]
opendp.smartnoise.core.value.parse_array1d_null(array)[source]
opendp.smartnoise.core.value.parse_dataframe(value)[source]
opendp.smartnoise.core.value.parse_index_key(value)[source]
opendp.smartnoise.core.value.parse_jagged(value)[source]
opendp.smartnoise.core.value.parse_partitions(value)[source]
opendp.smartnoise.core.value.parse_privacy_usage(usage: value_pb2.PrivacyUsage)[source]

Construct a json object representing privacy usage from a proto object

Parameters

usage – protobuf message

Returns

json privacy usage

opendp.smartnoise.core.value.parse_release(release)[source]
opendp.smartnoise.core.value.parse_value(value)[source]
opendp.smartnoise.core.value.serialize_analysis(analysis)[source]
opendp.smartnoise.core.value.serialize_argument_properties(value)[source]
opendp.smartnoise.core.value.serialize_array1d(array)[source]
opendp.smartnoise.core.value.serialize_component(component)[source]
opendp.smartnoise.core.value.serialize_dataframe(value)[source]
opendp.smartnoise.core.value.serialize_filter_level(filter_level)[source]
opendp.smartnoise.core.value.serialize_index_key(key)[source]
opendp.smartnoise.core.value.serialize_indexmap_release_node(release_values)[source]
opendp.smartnoise.core.value.serialize_partitions(value)[source]
opendp.smartnoise.core.value.serialize_privacy_definition(analysis)[source]
opendp.smartnoise.core.value.serialize_privacy_usage(usage)[source]

Construct a protobuf object representing privacy usage

Parameters

usage – either a dict {‘epsilon’: float, ‘delta’: float} or PrivacyUsage. May also be contained in a list.

Returns

List[PrivacyUsage]

opendp.smartnoise.core.value.serialize_release(release_values)[source]
opendp.smartnoise.core.value.serialize_release_node(release_node)[source]
opendp.smartnoise.core.value.serialize_value(value, value_format=None)[source]