Closed gongzhimin closed 3 years ago
Thank you. Will take a look and let you know.
I am facing one more error still related to passing target_train_model
and target_attack_model
as two different datahandlers:
AttributeError: 'attack_data' object has no attribute 'nonmember_train'
Error is raised by line no. 202 of ml_privacy_meter/utils/attack_data.py
:
nmtrainhashes = compute_hashes(self.nonmember_train)
That is problably due to self.nonmember_train
being initialized by the load_train()
method, which is actually not invoked on the target_attack_model
datahandler.
This question which had been taked by @gongzhimin at issue #22 confuses me too。 could you please explain it to us?
@mihirkhandekar Hello, I'm still confused and sorry to trouble you again. In the issue #19, you replied me that
In the tutorials provided, you show me two examples. But in both of them, you pass the same model to
target_train_model
andtarget_attack_model
, which really confuses me.In the file
ml_privacy_meter/attack/meminf.py
, the handling oftarget_attack_model
stops at receiving it. And no further operation.As for the method
test_attack()
, I'm not sure what role it plays in your blueprint. Is it a mistake thatself.target_train_model
should be replaced withself.target_attack_model
to evaluate the performance of membership inference model on Model B (target_attack_model)?Expect receiving your reply.