plot_neural_reconstruction_traces_wrapper

behavenet.plotting.decoder_utils.plot_neural_reconstruction_traces_wrapper(hparams, save_file=None, trial=None, xtick_locs=None, frame_rate=None, format='png', **kwargs)[source]

Plot ae latents and their neural reconstructions.

This is a high-level function that loads the model described in the hparams dictionary and produces the necessary predicted latents.

Parameters:
  • hparams (dict) – needs to contain enough information to specify an ae latent decoder

  • save_file (str) – full save file (path and filename)

  • trial (int, optional) – if NoneType, use first test trial

  • xtick_locs (array-like, optional) – tick locations in units of bins

  • frame_rate (float, optional) – frame rate of behavorial video; to properly relabel xticks

  • format (str, optional) – any accepted matplotlib save format, e.g. ‘png’ | ‘pdf’ | ‘jpeg’

Returns:

matplotlib figure handle of plot

Return type:

matplotlib.figure.Figure