@@ -31,42 +31,40 @@ def __init__(
31
31
"""
32
32
Create a new Table
33
33
34
- Parameters:
35
34
:param explanatory: List of background variables that explain the response.
36
- Will be set as a Dataframe-index.
35
+ Will be set as a Dataframe-index.
37
36
:param response: The column that needs to be explained.
38
37
:param shadow: The column that is used for the safety rules. Default: response.
39
38
:param cost: The column that contains the cost of suppressing a cell.
40
- Set to 1 to minimise the number of cells suppressed (although this might suppress totals).
41
- Default: response.
42
- :param labda: If set to a value > 0, a box-cox transformation is applied on the cost
43
- variable.
44
- If set to 0, a log transformation is applied on the cost.
45
- Default: 1.
39
+ Set to 1 to minimise the number of cells suppressed (although this might suppress totals).
40
+ Default: response.
41
+ :param labda: If set to a value > 0, a box-cox transformation is applied on the cost variable.
42
+ If set to 0, a log transformation is applied on the cost.
43
+ Default: 1.
46
44
:param safety_rule: A set of safety rules on individual level.
47
- Can be supplied as:
48
- - str where parts are separated by |
49
- - A sequence of parts
50
- - A dict with keys {"individual": x "holding": y} with separate rules on individual and
51
- holding level .
52
- Each part can be:
53
- - "P(p, n=1)": p% rule
54
- - "NK(n, k)": (n, k)-dominance rule
55
- - "ZERO(safety_range)": Zero rule
56
- - "FREQ(minfreq, safety_range)": Frequency rule
57
- - "REQ(percentage_1, percentage_2, safety_margin)": Request rule
58
- See the Tau-Argus manual for details on those rules.
59
- :param apriori: Apriori file to change parameters
45
+ Can be supplied as:
46
+ * str where parts are separated by |
47
+ * A sequence of parts
48
+ * A dict with keys {"individual": x "holding": y} with separate rules on individual and
49
+ holding level.
50
+ Each part can be:
51
+ * "P(p, n=1)": p% rule
52
+ * "NK(n, k)": (n, k)-dominance rule
53
+ * "ZERO(safety_range)": Zero rule
54
+ * "FREQ(minfreq, safety_range)": Frequency rule
55
+ * "REQ(percentage_1, percentage_2, safety_margin)": Request rule
56
+ See the Tau-Argus manual for details on those rules.
57
+ :param apriori: Apriori file to change parameters.
60
58
:param suppress_method: Method to use for secondary suppression.
61
- Options are:
62
- - `GHMITER` ("GH"): Hypercube
63
- - `MODULAR` ("MOD"): Modular
64
- - `OPTIMAL` ("OPT"): Optimal [default]
65
- - `NETWORK` ("NET"): Network
66
- - `ROUNDING` ("RND"): Controlled rounding
67
- - `TABULAR_ADJUSTMENT` ("CTA"): Controlled Tabular Adjustment
68
- - None: No secondary suppression is applied
69
- See the Tau-Argus manual for details on those rules.
59
+ Options are:
60
+ * `GHMITER` ("GH"): Hypercube
61
+ * `MODULAR` ("MOD"): Modular
62
+ * `OPTIMAL` ("OPT"): Optimal [default]
63
+ * `NETWORK` ("NET"): Network
64
+ * `ROUNDING` ("RND"): Controlled rounding
65
+ * `TABULAR_ADJUSTMENT` ("CTA"): Controlled Tabular Adjustment
66
+ * None: No secondary suppression is applied
67
+ See the Tau-Argus manual for details on those rules.
70
68
:param suppress_method_args: Parameters to pass to suppress_method.
71
69
"""
72
70
0 commit comments