Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
import
torch
4
from
torch.nn.modules.utils
import
_pair
Callers
nothing calls this directly
Calls
12
Network
Class · 0.90
Input
Class · 0.90
AdaptiveLIFNodes
Class · 0.90
LocalConnection1D
Class · 0.90
Connection
Class · 0.90
PoissonEncoder
Class · 0.90
Monitor
Class · 0.90
add_layer
Method · 0.80
add_connection
Method · 0.80
add_monitor
Method · 0.80
run
Method · 0.80
reset_state_variables
Method · 0.45
Tested by
no test coverage detected