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
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.
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 returnsgrad_f
(It is located in https://github.com/thisisalirah/GeoDA/blob/master/GeoDA.py#L180), isgrad_f
the normal vector??