mip_dmp.plot.matching module

Module to plot the initial matching results between the input dataset columns and the target CDE codes.

mip_dmp.plot.matching.heatmap_matching(figure, matrix, inputDatasetColumns, targetCDECodes, matchingMethod)[source]

Render a heatmap of the initial matching results between the input dataset columns and the target CDE codes.

Parameters

figure: matplotlib.figure.Figure

Figure to render the heatmap of the matching results.

matrix: numpy.ndarray

Similarity / distance matrix of the matching results.

inputDatasetColumns: list

List of the input dataset columns. Used as ytick labels.

targetCDECodes: list

List of the target CDE codes. Used as xtick labels.

matchingMethod: str

Matching method used to generate the similarity / distance matrix. Used to generate the title of the figure.