came.load_hidden_states

came.load_hidden_states(path) List[dict]

Load hidden states from .h5 file the data structure should be like

[ ‘layer0/cell’, ‘layer0/gene’, ‘layer1/cell’, ‘layer1/gene’, ‘layer2/cell’, ‘layer2/gene’ ]

Parameters:

path – .h5 file path

Returns:

values

Return type:

a list of dicts