Binclass-tools 1.0.0
1.0.0 release of package Binclass-tools
Features multiple new graphic tools:
-
calibration_curve_plot: returns the calibration curve, also known as reliability diagram: plots the average predicted probability for each bin against the fraction of positive classes using true labels and predicted probabilities, and shows the error for each bin and the
value of the Expected Calibration Error (ECE) -
calibration_plot_from_models: allows to visually compare the calibration curves of different models and returns the ECE for each given model
-
cumulative_gain_plot: shows the percentage of targets reached when considering a chosen percentage of the population with the highest predicted probability of belonging to the target class
-
lift_curve_plot: shows the effectiveness of the model by computing the ratio between the result obtained with a model and the result that would be obtained by a random classifier
-
response_curve_plot: plots the percentage of actual target class records per decile, where the first decile is associated with the 10 percent of observation with the highest predicted probability of belonging to the target class.
-
cumulative_response_plot: plots the percentage of actual target class records per decile cumulatively
New utility function added:
- get_expected_calibration_error: returns the ECE for the given model's predicted probabilities, with custom bin parameter
Updates for every graphical function :
- From version 1.0.0, the behavior of functions that generate plots has changed: generated plots won't be shown directly when the function is called, the related Figure (Plotly) objects, dictionary-like, will be returned as the first outputs instead.