Method of Comparison of Neural Network Resistance to Adversarial Attacks