MCPcopy Create free account
hub / github.com/cmu-db/benchbase / DPColumnConfig

Class DPColumnConfig

scripts/anonymization/src/configuration/configurations.py:5–31  ·  view source on GitHub ↗

A class to represent the classification of columns for DP anonymization Attributes ---------- hidden : list[str] List of column names that will not be anonymized categorical : list[str] List of categorical column names continuous : list[str] List of

Source from the content-addressed store, hash-verified

3
4
5class DPColumnConfig:
6 """A class to represent the classification of columns for DP anonymization
7
8 Attributes
9 ----------
10 hidden : list[str]
11 List of column names that will not be anonymized
12 categorical : list[str]
13 List of categorical column names
14 continuous : list[str]
15 List of continuous column names
16 ordinal : list[str]
17 List of ordinal column names
18
19 """
20
21 def __init__(
22 self,
23 hidden: list[str],
24 categorical: list[str],
25 continuous: list[str],
26 ordinal: list[str],
27 ):
28 self.hidden = hidden
29 self.categorical = categorical
30 self.continuous = continuous
31 self.ordinal = ordinal
32
33
34class DPConfig:

Callers 1

get_configMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected