add_predictions#

CrowdDetectionEvaluator.add_predictions(predictions_name: str, predictions: DataFrame)#

Method to add predictions to the Evaluator from a dataframe. No check will be done on image data the annotations refer to. However, it will check that image_id values of predictions are contained in the evaluator’s image_data and category_id values are contained in the label map

Note that this method will overwrite a potentially already existing prediction dataframe

Parameters:
  • predictions_name – name of predictions to add. It will then be used as key in the self.predictions_dictionary attribute.

  • predictions – prediction dataframe to be added to the evaluator.