hxtorch.spiking.utils.from_nir_data

Translate NIRGraphData to a hxtorch-compatible spike representation.

Classes

EventData(idx, time, n_neurons, t_max)

Event-based data represented as a list of event indices and their corresponding timestamps.

NIRGraphData(nodes, …)

Dictionary of NIRNodeData where each entry represents a NIRNode of a corresponding NIRGraph with its observables.

NIRNodeData(observables, …)

Dictionary of EventData or TimeGriddedData where each entry represents an observable (e.g., spikes, voltages) of a corresponding NIRNode

Functions

hxtorch.spiking.utils.from_nir_data.from_nir_data(nir_graph_data: nir.data_ir.graph.NIRGraphData, hxtorch_model)dict