Hi, I would like to know the meaning of test accuracy and p-test accuracy in the following code. Is it the accuracy of the attack or the accuracy of the training task?
for batch in iterate_minibatches(X_test, y_test, 500, shuffle=False):
inputs, targets = batch
err, acc = val_fn(inputs, targets)
val_err += err
val_acc += acc
val_batches += 1
for batch in iterate_minibatches(X_test, p_test, 500, shuffle=False):
inputs, targets = batch
err, acc = pval_fn(inputs, targets)
val_perr += err
val_pacc += acc
val_pbatches += 1
sys.stderr.write("Iteration {} of {} took {:.3f}s\n".format(it + 1, num_iteration,
time.time() - start_time))
sys.stderr.write(" test accuracy:\t\t{:.2f} %\n".format(val_acc / val_batches / 500 * 100))
sys.stderr.write(" p-test accuracy:\t\t{:.2f} %\n".format(val_pacc / val_pbatches / 500 * 100))
start_time = time.time()