7a8be4139a3d1f3968081728375c4621285ec3fe,unrestricted_advex/eval_kit/eval_with_attacks.py,,plot_confident_error_rate,#Any#Any#Any#Any#Any#Any#Any#,145
Before Change
fig = plt.figure()
ax = fig.add_subplot(111)
plt.plot(coverages, [float(len(idxs)) / num_examples
for idxs in cov_to_confident_error_idxs])
plt.title(title.format(attack_name=attack_name))
plt.ylabel("Risk \n (error rate on covered data)")
plt.xlabel("Coverage \n (fraction of points not abstained on)")
After Change
num_examples * coverage for coverage in coverages
]
risk_on_covered_data = [
float(len(error_idxs)) / num_covered_examples
for error_idxs, num_covered_examples in
zip(cov_to_confident_error_idxs, cov_to_num_covered_examples)]
plt.plot(coverages, risk_on_covered_data)
plt.title(title.format(attack_name=attack_name))
plt.ylabel("Risk \n (error rate on covered data)")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: google/unrestricted-adversarial-examples
Commit Name: 7a8be4139a3d1f3968081728375c4621285ec3fe
Time: 2018-08-25
Author: nottombrown@gmail.com
File Name: unrestricted_advex/eval_kit/eval_with_attacks.py
Class Name:
Method Name: plot_confident_error_rate
Project Name: nilmtk/nilmtk
Commit Name: 0ac7cecce4f147011037fcb79dfd57867b8329a8
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: plot_good_sections
Project Name: matplotlib/matplotlib
Commit Name: 365d54c7eadcad1d9ff065299f75da7ca5f80d28
Time: 2018-07-05
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/tests/test_axes.py
Class Name:
Method Name: test_symlog2