SNN 核函数的2种形状
画出k的形状
def Plot_k(self,tau = 1):
s = np.random.random(500)* 10
value = s / self.tau * np.exp(1 - s / self.tau)
plt.scatter(s,value,c='r',alpha=0.3,marker = '*')
plt.show()
def Plot_kk(self,tau = 1, tau_s = 0.25):
原创
2021-01-05 10:14:05 ·
213 阅读 ·
0 评论