ml_grid.util.debug_print_statements

Classes

debug_print_statements_class

Initializes the debug_print_statements_class.

Module Contents

class ml_grid.util.debug_print_statements.debug_print_statements_class(scores: Dict[str, numpy.ndarray])[source]

Initializes the debug_print_statements_class.

Parameters:

scores (Dict[str, np.ndarray]) – A dictionary of scores from a scikit-learn cross-validation run. Expected keys include ‘test_f1’, ‘test_roc_auc’, ‘test_accuracy’, ‘fit_time’, and ‘score_time’.

scores[source]
debug_print_scores() None[source]

Prints the mean and standard deviation of various scores.

This method iterates through a predefined set of score keys, calculates the mean and standard deviation for each, and prints the results to the console.