Skip to contents

Checks if an eval_report object is valid

Usage

isValidEval_report(obj)

Arguments

obj

The object to be checked.

Value

TRUE if the object is valid, otherwise stops the script.

Details

This function verifies if the 'eval_report_obj' object corresponds to an eval_report object generated by the 'evaluation_report()' function. It also ensures that the object is a list containing the expected elements: 'data', 'identity', 'precision_recall', 'roc', 'counts', and 'performances'. If the object does not match these expectations, an error message is displayed.

Examples

if (FALSE) {
# Using isValidEval_report
eval_report <- evaluation_report()
isValidEval_report(eval_report)
}