MCPcopy Create free account
hub / github.com/BindsNET/bindsnet / loc1d_mnist.py

File loc1d_mnist.py

examples/mnist/loc1d_mnist.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1### Toy example to test LocanConnection1D (the dataset used is MNIST but each image is raveled (each sample has shape (784,)).
2
3import torch
4from torch.nn.modules.utils import _pair

Callers

nothing calls this directly

Calls 12

NetworkClass · 0.90
InputClass · 0.90
AdaptiveLIFNodesClass · 0.90
LocalConnection1DClass · 0.90
ConnectionClass · 0.90
PoissonEncoderClass · 0.90
MonitorClass · 0.90
add_layerMethod · 0.80
add_connectionMethod · 0.80
add_monitorMethod · 0.80
runMethod · 0.80
reset_state_variablesMethod · 0.45

Tested by

no test coverage detected