Menu

Benchmark multi-model/multi-view models.

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.

mmbench.workflow.similarity.benchmark_feature_similarity_exp(dataset, datasetdir, configfile, outdir, dtype='full')[source]

Define the Centered Kernel Alignment (CKA) as a measure of similarity between two output features in a layer of a network architecture given any two pairs of instances of a network.

Parameters

dataset : str

the dataset name: euaims or hbn.

datasetdir : str

the path to the dataset associated data.

configfile : str

the path to the config file descibing the different models to compare. This configuration file is a Python (*.py) file with a dictionary named ‘_models’ containing the different model settings. Keys of this dictionary are the model names, each beeing described with a model getter function ‘get’ and associated kwargs ‘get_kwargs’, as weel as an evaluation function ‘eval’ and associated kwargs ‘eval_kwargs’. The getter and evaluation functions are defined in the ‘mmbench.model’ module.

outdir : str

the destination folder.

dtype : str, default ‘full’

the data type: ‘complete’ or ‘full’.

Follow us

© 2023, mmbench developers