a802d31210ed262b8159b656b256bdacf10c9d61,bindsnet/analysis/plotting.py,,plot_performance,#Any#Any#Any#Any#,398
Before Change
for scheme in performances:
ax.plot(
[n * x_scale for n in range(len(performances[scheme]))],
[p for p in performances[scheme]],
label=scheme,
)
After Change
:return: Used for re-drawing the performance plot.
if save is not None:
plt.ioff()
_, ax = plt.subplots(figsize=figsize)
for scheme in performances:
ax.plot(
range(len(performances[scheme])),
[p for p in performances[scheme]],
label=scheme,
)
ax.set_ylim([0, 100])
ax.set_title("Estimated classification accuracy")
ax.set_xlabel("No. of examples")
ax.set_ylabel("Accuracy")
ax.set_xticks(())
ax.set_yticks(range(0, 110, 10))
ax.legend()
plt.savefig(save, bbox_inches="tight")
plt.close()
plt.ion()
else:
if not ax:
_, ax = plt.subplots(figsize=figsize)
else:
ax.clear()
for scheme in performances:
ax.plot(
range(len(performances[scheme])),
[p for p in performances[scheme]],
label=scheme,
)
ax.set_ylim([0, 100])
ax.set_title("Estimated classification accuracy")
ax.set_xlabel("No. of examples")
ax.set_ylabel("Accuracy")
ax.set_xticks(())
ax.set_yticks(range(0, 110, 10))
ax.legend()
return ax
def plot_voltages(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: BindsNET/bindsnet
Commit Name: a802d31210ed262b8159b656b256bdacf10c9d61
Time: 2020-05-11
Author: hananel@hazan.org.il
File Name: bindsnet/analysis/plotting.py
Class Name:
Method Name: plot_performance
Project Name: dPys/PyNets
Commit Name: 6d895c6a1f32c982ca3d75929bd0f303a16746d5
Time: 2018-08-28
Author: dpisner@utexas.edu
File Name: pynets/plotting.py
Class Name:
Method Name: plot_conn_mat
Project Name: robertmartin8/PyPortfolioOpt
Commit Name: 1d07a55ab2ddd028ac0e607db496f74bb875ed65
Time: 2020-03-18
Author: martin.robertandrew@gmail.com
File Name: pypfopt/risk_models.py
Class Name:
Method Name: correlation_plot