API

gradec.dcode: Decoder algorithms

Decode module.

decode.TermDecoder(**kwargs)

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

decode.LDADecoder([n_topics, n_top_words])

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

decode.GCLDADecoder([n_iters, n_topics, ...])

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

gradec.model: Meta-analytic models

Models for Gradec.

model.LDAModel(n_topics[, max_iter, alpha, ...])

Generate a latent Dirichlet allocation (LDA) topic model.

model.annotate_lda(dataset, dataset_nm, ...)

Annotate Dataset with the resutls of an LDA model.

gradec.segmentation: Segmentation algorithms

Segmentation module.

segmentation.PCTSegmentation([n_segments])

Percentile-based segmentation.

segmentation.KMeansSegmentation([n_segments])

KMeans-based segmentation.

gradec.utils: Utility functions and submodules

Miscellaneous functions used for analyses.

utils.get_data_dir([data_dir])

Get path to gradec data directory.