observations.celegans

celegans(path)

Load the neural network of the worm C. Elegans (Watts & Strogatz, 1998). The neural network consists of around 300 neurons. Each connection between neurons is associated with a weight (positive integer) capturing the strength of the connection.

Args:

  • path: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filename is celegansneural.gml.

Returns:

Adjacency matrix as a np.darray x_train with 297 rows and 297 columns.

Watts, D. J., & Strogatz, S. H. (1998). Collective dynamics of “small-world” networks. Nature, 393(6684), 440.