viziphant.gpfa.plot_transform_matrix

viziphant.gpfa.plot_transform_matrix(loading_matrix, cmap='RdYlGn')[source]

This function visualizes the loading matrix as a heatmap.

Parameters:
loading_matrixnp.ndarray

The loading matrix defines the mapping between neural space and latent state space. It is obtained by fitting a GPFA model and stored in GPFA.params_estimated['C'] or if orthonormalized GPFA.params_estimated['Corth'].

cmapstr, optional

Matplotlib imshow colormap. Default: ‘RdYlGn’

Returns:
figmatplotlib.figure.Figure
axesmatplotlib.axes.Axes