API Reference#
Tumult Analytics is a differentially private analytics library from Tumult Labs.
The library is broken up into a number of modules that provide different functionality. These modules fall into a few broad categories, described below.
For specifying privacy guarantees:
session
defines theSession
, an interactive interface for making differentially private queries.privacy_budget
contains types for representing privacy budgets.protected_change
contains types for expressing what changes in input tables are protected by differential privacy.
For defining queries:
query_builder
provides an interface for constructing differentially private queries from basic query operations.keyset
definesKeySet
, a type for specifying the keys used in group-by operations.constraints
contains types for representing constraints used when evaluating queries on data with theAddRowsWithID
protected change.truncation_strategy
andbinning_spec
provide types that are used to define certain types of queries.
program
provides an interface for defining a particular differentially private computation as a reusable program object.tuner
provides an interface for evaluating and tuning the error of a program.metrics
defines a collection of metrics which can be used as part of the tuning process.
Modules#
A BinningSpec defines a binning operation on a column. |
|
Configuration for Tumult Analytics. |
|
Defines |
|
A KeySet specifies a list of values for one or more columns. |
|
|
|
Classes for specifying privacy budgets. |
|
Types for programmatically specifying what changes in input tables are protected. |
|
An API for building differentially private queries from basic operations. |
|
Building blocks of the Tumult Analytics query language. Not for direct use. |
|
Interactive query evaluation using a differential privacy framework. |
|
Defines strategies for performing truncation in private joins. |
|
Utility functions. |
This diagram shows the basic workflow for most Analytics operations. (Click to see full-size image.)