@@ -533,7 +533,7 @@ def get_scene(self, reference_id) -> Scene:
533
533
)
534
534
535
535
def export_predictions (self , model ):
536
- """Exports all predications from a model run """
536
+ """Exports all predications from a model on this dataset """
537
537
json_response = self ._client .make_request (
538
538
payload = None ,
539
539
route = f"dataset/{ self .id } /model/{ model .id } /export" ,
@@ -543,19 +543,22 @@ def export_predictions(self, model):
543
543
544
544
def calculate_evaluation_metrics (self , model , options = None ):
545
545
"""
546
- class_agnostic -- A flag to specify if matching algorithm should be class-agnostic or not.
547
- Default value: True
548
546
549
- allowed_label_matches -- An optional list of AllowedMatch objects to specify allowed matches
550
- for ground truth and model predictions.
551
- If specified, 'class_agnostic' flag is assumed to be False
547
+ :param model: the model to calculate eval metrics for
548
+ :param options: Dict with keys:
549
+ class_agnostic -- A flag to specify if matching algorithm should be class-agnostic or not.
550
+ Default value: True
552
551
553
- Type 'AllowedMatch':
554
- {
555
- ground_truth_label: string, # A label for ground truth annotation.
556
- model_prediction_label: string, # A label for model prediction that can be matched with
557
- # corresponding ground truth label.
558
- }
552
+ allowed_label_matches -- An optional list of AllowedMatch objects to specify allowed matches
553
+ for ground truth and model predictions.
554
+ If specified, 'class_agnostic' flag is assumed to be False
555
+
556
+ Type 'AllowedMatch':
557
+ {
558
+ ground_truth_label: string, # A label for ground truth annotation.
559
+ model_prediction_label: string, # A label for model prediction that can be matched with
560
+ # corresponding ground truth label.
561
+ }
559
562
560
563
payload:
561
564
{
0 commit comments