gradec.decode.LDADecoder

class gradec.decode.LDADecoder(n_topics=200, n_top_words=3, **kwargs)[source]

Decode an unthresholded image by correlating the image with meta-analytic maps.

fit(dset_nm, dset=None)

Fit decoder to dataset.

transform(grad_maps, method='correlation', topic_priors=None, prior_weight=1)[source]

Correlate target image with each feature-specific meta-analytic map.

Parameters:

grad_maps (Nifti1Image) – Image to decode. Must be in same space as dataset.

Returns:

out_df (pandas.DataFrame) – DataFrame with one row for each feature, an index named “feature”, and one column: “r”.