spikingjelly.timing_based.examples package

Submodules

spikingjelly.timing_based.examples.tempotron_mnist module

class spikingjelly.timing_based.examples.tempotron_mnist.Net(m, T)[源代码]

基类:Module

forward(x: Tensor)[源代码]
training: bool
spikingjelly.timing_based.examples.tempotron_mnist.main()[源代码]
返回:

None

使用高斯调谐曲线编码器编码图像为脉冲,单层Tempotron进行MNIST识别。

这个函数会初始化网络进行训练,并显示训练过程中在测试集的正确率。

Use Gaussian tuned activation function encoder to encode the images to spikes.

The network with single Tempotron structure for classifying MNIST.

This function initials the network, starts training and shows accuracy on test dataset.

Module contents