[Python] Understanding snn coding (bindsnet)

Discussão em 'Python' iniciado por Stack, Março 6, 2025.

  1. Stack

    Stack Membro Participativo

    Hello for the case of using bindsnet encoding methods, can someone please explain the particularities for the case its needed to encode a 1d simple vector, for example using

    import torch

    from bindsnet.encodings import encoding

    from bindsnet.analysis.plotting import plot_spikes

    a=torch.tensor([1,2,3,4,5], dtype=torch.float32)

    enc=encodings.single(a, time=5)

    plot_spikes({'enc':en})


    Means that every value in tensor a is a column in enc represented by 5 length binary word? Please some explanation regarding plot_spikes axes Will be usefull. Thanks for your time.

    Continue reading...

Compartilhe esta Página