Random Forest Black Box with CleverHans

牧云@^-^@ 提交于 2019-12-06 15:33:19

In the current tutorial, the black-box model is a neural network implemented with TensorFlow and its predictions (the labels) are used to train a substitute model (a copy of the black-box model). The substitute model is then used to craft adversarial examples that transfer to the black-box model.

In your case, you would have to replace bbox_val in

bbox_val = batch_eval(sess, [x], [bbox_preds], [x_sub_prev],
                        args=eval_params)[0]

by the predictions of your random forest on the numpy array of substitute training data x_sub_prev.

You can find more information about the attack implemented in this tutorial in the following paper: https://arxiv.org/abs/1602.02697

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!