probly.visualization.credal.input_handling¶
Manages input as well as dispatch to correct plot.
Functions
|
Checks number of classes. |
|
Sanity check for input data. |
|
Selects and executes the correct plotting function based on class count. |
|
Normalizes input data. |
- probly.visualization.credal.input_handling.check_num_classes(input_data)[source]¶
Checks number of classes.
- probly.visualization.credal.input_handling.check_shape(input_data)[source]¶
Sanity check for input data.
- probly.visualization.credal.input_handling.dispatch_plot(input_data, labels=None, title=None, choice=None, minmax=None)[source]¶
Selects and executes the correct plotting function based on class count.
- Parameters:
input_data (np.ndarray) – Probabilities vector.
labels (list[str] | None) – List of labels corresponding to the classes.
title (str | None) – Manages custom or predefined title.
choice (str | None) – Allows either “MLE”, “Credal”, “Probability” or None.
minmax (bool | None) – Enables to show the Min/Max lines for ternary plots.
- Return type:
Axes