arthurai.core.inferences.add_predictions_or_ground_truth#

arthurai.core.inferences.add_predictions_or_ground_truth(inference_data, new_data, attributes, stage)#

Add prediction or ground truth data to inference data in place. :type inference_data: List[Dict[str, Any]] :param inference_data: the inference data as a List of Dicts as expected by the Arthur API :type new_data: Union[List[Dict[str, Any]], Dict[str, List[Any]], DataFrame, Iterable[Any]] :param new_data: the new data to add in, as a List of Dicts, Dict of Lists, DataFrame, or Sequence (if a single column) :type attributes: List[ArthurAttribute] :param attributes: the model’s attributes :type stage: Stage :param stage: the Stage of the new data, either PredictedValue or GroundTruth :return: None (modifies inference_data in place)