Skip to content

Commit 722dd87

Browse files
committed
Documentation format fix
Signed-off-by: Álvaro Bacca Peña <[email protected]>
1 parent 9be8e72 commit 722dd87

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

art/defences/detector/poison/clustering_centroid_analysis.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def __init__(
256256
clusterer = DBSCAN(eps=0.8, min_samples=20)
257257
):
258258
"""
259-
creates a :class: `ClusteringCentroidAnalysis` object for the given classifier
259+
Creates a :class: `ClusteringCentroidAnalysis` object for the given classifier
260260
261261
:param classifier: model evaluated for poison
262262
:param x_train: dataset used to train the classifier (might be poisoned)
@@ -309,12 +309,9 @@ def _calculate_misclassification_rate(self, class_label: int, deviation: np.arra
309309
"""
310310
Calculate the misclassification rate when applying a deviation to other classes.
311311
312-
Args:
313-
class_label: The class label for which the deviation is calculated
314-
deviation: The deviation vector to apply
315-
316-
Returns:
317-
The misclassification rate (0.0 to 1.0)
312+
:param class_label: The class label for which the deviation is calculated
313+
:param deviation: The deviation vector to apply
314+
:return: The misclassification rate (0.0 to 1.0)
318315
"""
319316
# Convert deviation to a tensor once
320317
deviation_tf = tf.convert_to_tensor(deviation, dtype=tf.float32)

0 commit comments

Comments
 (0)