#Carlini-Wagner attack
cwl2 = CarliniWagnerL2(model, sess=sess)
adv_x = cwl2.generate(x, **cwl2_params)
preds_adv = model.get_logits(adv_x)
However, I am not sure what form "cwl2_params" would take. An example of pgd_params that appeared to be successful was:
pgd_params = {'eps':0.1,
'eps_iter': 0.01,
'nb_iter': 10.,
'clip_min': 0.,
'clip_max': 1.}
And the function "parse_params" (Line 1189 in attacks.py) lists a number of input parameters, e.g.,
def parse_params(self,
y=None,
y_target=None,
batch_size=1,
confidence=0,
learning_rate=5e-3,
binary_search_steps=5,
max_iterations=1000,
abort_early=True,
initial_const=1e-2,
clip_min=0,
clip_max=1):
Please advise.
Thank you. AT
I'm not quite sure what you're asking, but you can look at sample
parameters for the attack here
https://github.com/tensorflow/cleverhans/blob/master/cleverhans_tutorials/mnist_tutorial_cw.py#L182
Does that help?
If you have any further questions on this, feel free to reply
directly to me---the cleverhans-dev mailinglist is meant for
discussing the development of the cleverhans library, and
not primarily as a forum for questions about using it.
Nicholas
> To unsubscribe from this group and stop receiving emails from it, send an email to cleverhans-dev+unsubscribe@googlegroups.com.
> To post to this group, send email to cleverhans-dev@googlegroups.com.