Create Sparse Matrix Based Liquid State Machine
This text explains the process of creating a sparse matrix-based liquid state machine using tensorly and torch libraries. It focuses on efficient data processing for intricate datasets such as brain neurons.
use tensorly
to create random sparse tensor and eye sparse tensor with ease, which could be numpy only, and requires the sparse
package.
scipy
, pytorch
, tensorflow
, jax
all support sparse tensor construction but advanced apis are not.
use eye
to create bias and input matrix, extract node values. use random sparse tensor to initialize weight matrix. use self matrix multiplication to perform propagation.
the human brain has roughly 87 billion neurons, and every one of them has thousands of synapses.
1 | import torch |
alternatively:
1 | import torch |