Browse Source

!104 Resolve document alignment issues

Merge pull request !104 from liuluobin/master
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
7ead0661f8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindarmour/diff_privacy/evaluation/membership_inference.py

+ 1
- 1
mindarmour/diff_privacy/evaluation/membership_inference.py View File

@@ -132,7 +132,7 @@ class MembershipInference:
dataset_test (mindspore.dataset): The test set for the target model. dataset_test (mindspore.dataset): The test set for the target model.
attack_config (list): Parameter setting for the attack model. The format is attack_config (list): Parameter setting for the attack model. The format is
[{"method": "knn", "params": {"n_neighbors": [3, 5, 7]}}, [{"method": "knn", "params": {"n_neighbors": [3, 5, 7]}},
{"method": "lr", "params": {"C": np.logspace(-4, 2, 10)}}].
{"method": "lr", "params": {"C": np.logspace(-4, 2, 10)}}].
The support methods list is in self.method_list, and the params of each method The support methods list is in self.method_list, and the params of each method
must within the range of changeable parameters. Tips of params implement must within the range of changeable parameters. Tips of params implement
can be found in can be found in


Loading…
Cancel
Save