thisisalirah / GeoDA

This repository contains the official PyTorch implementation of GeoDA algorithm. GeoDA is a Black-box attack to generate adversarial example for image classifiers.
31 stars 7 forks source link

Which code indicates to the computation of normal vector of the hyperplane? #5

Open machanic opened 3 years ago

machanic commented 3 years ago

The core idea of this paper is to calculate a normal vector of classification hyperplane by using N queries. However, after reading the source code, I cannot find which code related to the computation of normal vector of the hyperplane.

Is the def black_grad_batch corresponds to the normal vector? This function returns grad_f (It is located in https://github.com/thisisalirah/GeoDA/blob/master/GeoDA.py#L180), is grad_f the normal vector??