AI Experiment Utils¶
- class ibm_watsonx_gov.ai_experiments.utils.ai_experiment_utils.AIExperimentUtils¶
Bases:
object
Class for AI experiment related utility methods
- classmethod construct_result_attachment_payload(evaluation_results: dict, nodes: List[Node] = None)¶
Constructs payload for result attachment from experiment run’s result :param - evaluation_results: The dict of metrics from evaluators and custom.
Returns: The payload for result attachment and total number of records processed
- classmethod get_result_with_metric_groups(metrics: list) list ¶
Organises the result based on metric groups :param - metrics: The list of metrics
Returns: The list containing metric groups and corresponding metrics for each group