load_latents

behavenet.plotting.load_latents(hparams, version, dtype='val')[source]

Load all latents as a single array.

Parameters:
  • hparams (dict) – needs to contain enough information to specify both a model and the associated data

  • version (int) – version from test tube experiment defined in hparams

  • dtype (str) – ‘train’ | ‘val’ | ‘test’

Returns:

shape (time, n_latents)

Return type:

np.ndarray