mealy.error_analysis_utils¶
Functions¶
- mealy.error_analysis_utils.check_enough_data(df, min_len)[source]¶
Compare length of dataframe to minimum lenght of the test data. Used in the relevance of the measure.
- Parameters
df – Input dataframe
min_len –
- Returns
- mealy.error_analysis_utils.format_float(number, decimals)[source]¶
Format a number to have the required number of decimals. Ensure no trailing zeros remain.
- mealy.error_analysis_utils.get_epsilon(difference)[source]¶
Compute the threshold used to decide whether a prediction is wrong or correct (for regression tasks).
- Parameters
difference (1D-array) – The absolute differences between the true target values and the predicted ones (by the primary model).
- Returns
The value of the threshold used to decide whether the prediction for a regression task is wrong or correct
- Return type
epsilon (float)