UniformGenerator

class spikeometric.datasets.UniformGenerator(n_neurons: int, low: float, high: float, sparsity: float, rng=None)[source]

Bases: spikeometric.datasets.connectivity_generator.ConnectivityGenerator

A dataset of connectivity matrices for networks of neurons, where each matrix is generated from a uniform distribution over the range [low, high] and then sparsified to the specified sparsity.

generate_W0()[source]

Generates a single connectivity matrix W0 from a uniform distribution over the range [low, high] and then sparsifies it to the specified sparsity