module visualization.spider_chart
Spider Plot.
This function returns a spider plot that can be used to compare models with respect to different performance measures.
Copyright (C) 2022 Johannes Haug.
function spider_chart
spider_chart(
measures: List[List],
measure_names: List[str],
legend_names: List[str],
ranges: Optional[List[Tuple]] = None,
invert: Optional[List[bool]] = None,
fig_size: tuple = (8, 5),
font_size: int = 16
) → Axes
Returns a spider chart that displays the specified measures.
Args:
measures
: A list of lists. Each list corresponds to different (e.g. model-wise) results for one performance measure.measure_names
: The names of the performance measures that are shown. This attribute has the same length as 'measures'legend_names
: Legend labels for each different result per measure (e.g. model names). This attribute has the same length as each list in the 'measures' attribute.ranges
: The value ranges for each of the measures. If None, the range will be set to (0,1) per default. Otherwise, each tuple in the list corresponds to the range of the measure at the respective position in 'measures'.invert
: A list of bool values indicating for each measure if it should be inverted. We invert a measure if a lower value is better than higher value. Otherwise, the spider chart may be confusing. If None, 'invert' will be set to False for each measure.fig_size
: The figure size (length x height).font_size
: The font size of the axis labels.
Returns:
Axes
: The Axes object containing the plot.
This file was automatically generated via lazydocs.