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 decodersave_file (
str) – full save file (path and filename)trial (
int, optional) – ifNoneType, use first test trialxtick_locs (
array-like, optional) – tick locations in units of binsframe_rate (
float, optional) – frame rate of behavorial video; to properly relabel xticksformat (
str, optional) – any accepted matplotlib save format, e.g. ‘png’ | ‘pdf’ | ‘jpeg’
- Returns:
matplotlib figure handle of plot
- Return type:
matplotlib.figure.Figure