Skip to content

Commit 5b97f61

Browse files
author
Beat Buesser
committed
Update docs
Signed-off-by: Beat Buesser <[email protected]>
1 parent d2088b2 commit 5b97f61

File tree

19 files changed

+169
-11
lines changed

19 files changed

+169
-11
lines changed

art/attacks/poisoning/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
"""
22
Module providing poisoning attacks under a common interface.
33
"""
4+
from art.attacks.poisoning.backdoor_attack_dgm_red import BackdoorAttackDGMReD
5+
from art.attacks.poisoning.backdoor_attack_dgm_trail import BackdoorAttackDGMTrail
46
from art.attacks.poisoning.backdoor_attack import PoisoningAttackBackdoor
57
from art.attacks.poisoning.poisoning_attack_svm import PoisoningAttackSVM
68
from art.attacks.poisoning.feature_collision_attack import FeatureCollisionAttack
79
from art.attacks.poisoning.adversarial_embedding_attack import PoisoningAttackAdversarialEmbedding
810
from art.attacks.poisoning.clean_label_backdoor_attack import PoisoningAttackCleanLabelBackdoor
911
from art.attacks.poisoning.bullseye_polytope_attack import BullseyePolytopeAttackPyTorch
12+
from art.attacks.poisoning.gradient_matching_attack import GradientMatchingAttack
1013
from art.attacks.poisoning.hidden_trigger_backdoor.hidden_trigger_backdoor import HiddenTriggerBackdoor
1114
from art.attacks.poisoning.hidden_trigger_backdoor.hidden_trigger_backdoor_pytorch import HiddenTriggerBackdoorPyTorch
1215
from art.attacks.poisoning.hidden_trigger_backdoor.hidden_trigger_backdoor_keras import HiddenTriggerBackdoorKeras
13-
from art.attacks.poisoning.gradient_matching_attack import GradientMatchingAttack

art/attacks/poisoning/hidden_trigger_backdoor/hidden_trigger_backdoor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ def __init__(
100100
:param classifier: A trained neural network classifier.
101101
:param target: The target class/indices to poison. Triggers added to inputs not in the target class will
102102
result in misclassifications to the target class. If an int, it represents a label.
103-
Otherwise, it is an array of indicies.
104-
:param source: The class/indicies which will have a trigger added to cause misclassification
105-
If an int, it represents a label. Otherwise, it is an array of indicies.
103+
Otherwise, it is an array of indices.
104+
:param source: The class/indices which will have a trigger added to cause misclassification
105+
If an int, it represents a label. Otherwise, it is an array of indices.
106106
:param feature_layer: The name of the feature representation layer
107107
:param backdoor: A PoisoningAttackBackdoor that adds a backdoor trigger to the input.
108108
:param eps: Maximum perturbation that the attacker can introduce.
@@ -185,6 +185,7 @@ def poison( # pylint: disable=W0221
185185
"""
186186
Calls perturbation function on the dataset x and returns only the perturbed inputs and their
187187
indices in the dataset.
188+
188189
:param x: An array in the shape NxCxWxH with the points to draw source and target samples from.
189190
Source indicates the class(es) that the backdoor would be added to to cause
190191
misclassification into the target label.

art/attacks/poisoning/hidden_trigger_backdoor/hidden_trigger_backdoor_keras.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ def __init__(
8181
:param classifier: A trained neural network classifier.
8282
:param target: The target class/indices to poison. Triggers added to inputs not in the target class will
8383
result in misclassifications to the target class. If an int, it represents a label.
84-
Otherwise, it is an array of indicies.
85-
:param source: The class/indicies which will have a trigger added to cause misclassification
86-
If an int, it represents a label. Otherwise, it is an array of indicies.
84+
Otherwise, it is an array of indices.
85+
:param source: The class/indices which will have a trigger added to cause misclassification
86+
If an int, it represents a label. Otherwise, it is an array of indices.
8787
:param feature_layer: The name of the feature representation layer.
8888
:param backdoor: A PoisoningAttackBackdoor that adds a backdoor trigger to the input.
8989
:param eps: Maximum perturbation that the attacker can introduce.

art/attacks/poisoning/hidden_trigger_backdoor/hidden_trigger_backdoor_pytorch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def __init__(
9797
:param classifier: A trained neural network classifier.
9898
:param target: The target class/indices to poison. Triggers added to inputs not in the target class will
9999
result in misclassifications to the target class. If an int, it represents a label.
100-
Otherwise, it is an array of indicies.
101-
:param source: The class/indicies which will have a trigger added to cause misclassification
102-
If an int, it represents a label. Otherwise, it is an array of indicies.
100+
Otherwise, it is an array of indices.
101+
:param source: The class/indices which will have a trigger added to cause misclassification
102+
If an int, it represents a label. Otherwise, it is an array of indices.
103103
:param feature_layer: The name of the feature representation layer.
104104
:param backdoor: A PoisoningAttackBackdoor that adds a backdoor trigger to the input.
105105
:param eps: Maximum perturbation that the attacker can introduce.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
22
DeepZ based certification estimators.
33
"""
4+
from art.estimators.certification.deep_z.deep_z import ZonoDenseLayer
5+
from art.estimators.certification.deep_z.deep_z import ZonoBounds
6+
from art.estimators.certification.deep_z.deep_z import ZonoConv
7+
from art.estimators.certification.deep_z.deep_z import ZonoReLU
48
from art.estimators.certification.deep_z.pytorch import PytorchDeepZ

art/estimators/gan/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""
2+
GAN Estimator API.
3+
"""
4+
from art.estimators.gan.tensorflow_gan import TensorFlow2GAN

art/estimators/generation/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
from art.estimators.generation.generator import GeneratorMixin
55

66
from art.estimators.generation.tensorflow import TensorFlowGenerator
7+
from art.estimators.generation.tensorflow import TensorFlow2Generator
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""
2+
Experimental Estimator API
3+
"""
4+
from art.experimental.estimators.jax import JaxEstimator

docs/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,22 @@ Supported Machine Learning Libraries
7676
modules/defences/transformer_poisoning
7777
modules/estimators
7878
modules/estimators/certification
79+
modules/estimators/certification_deep_z
7980
modules/estimators/certification_randomized_smoothing
8081
modules/estimators/classification
8182
modules/estimators/classification_scikitlearn
8283
modules/estimators/encoding
84+
modules/estimators/gan
8385
modules/estimators/generation
8486
modules/estimators/object_detection
8587
modules/estimators/object_tracking
8688
modules/estimators/poison_mitigation
8789
modules/estimators/regression
8890
modules/estimators/regression_scikitlearn
8991
modules/estimators/speech_recognition
92+
modules/experimental
93+
modules/experimental/estimators
94+
modules/experimental/estimators/classification
9095
modules/evaluations
9196
modules/metrics
9297
modules/preprocessing
@@ -95,6 +100,7 @@ Supported Machine Learning Libraries
95100
modules/preprocessing/standardisation_mean_std
96101
modules/data_generators
97102
modules/exceptions
103+
modules/summary_writer
98104
modules/utils
99105
modules/tests/utils
100106

docs/modules/attacks/inference/attribute_inference.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ Attribute Inference Membership
2020
:members:
2121
:special-members:
2222

23+
Attribute Inference Base Line True Label
24+
----------------------------------------
25+
.. autoclass:: AttributeInferenceBaselineTrueLabel
26+
:members:
27+
:special-members:
28+
2329
Attribute Inference White-Box Lifestyle Decision-Tree
2430
-----------------------------------------------------
2531
.. autoclass:: AttributeInferenceWhiteBoxLifestyleDecisionTree

0 commit comments

Comments
 (0)