|
@@ -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 |
|
|