f33c83c67b2a7120ee2ca58a14a0bafbef1b7ec8,examples/modified_freq_match.py,,,#,19

Before Change


distances = [torch.sum(torch.sqrt((target_rates - avg_rates) ** 2))]
rewards = [reward]

spike_record = {layer : torch.zeros(plot_interval, n) for layer in network.layers}

print()
for i in range(i):

After Change


			ax.set_aspect("auto")
			ax.set_title("Difference between target and actual firing rates.")
			cbar = plt.colorbar(im)
			plt.tight_layout()
			
			fig2, ax2 = plt.subplots()
			line2, = ax2.semilogy(distances, label="Distance")
			ax2.axhline(0, ls="--", c="r")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: BindsNET/bindsnet
Commit Name: f33c83c67b2a7120ee2ca58a14a0bafbef1b7ec8
Time: 2018-04-23
Author: djsaunde@umass.edu
File Name: examples/modified_freq_match.py
Class Name:
Method Name:


Project Name: scikit-image/scikit-image
Commit Name: 493c862567da8e61ba3f21883e680de00dd0531e
Time: 2016-09-04
Author: multicolor.mood@gmail.com
File Name: doc/examples/segmentation/plot_label.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 5608ac37feb7fad002c0e030ba30f4924e8c1fc1
Time: 2018-09-24
Author: anntzer.lee@gmail.com
File Name: examples/statistics/barchart_demo.py
Class Name:
Method Name: