Skip to content

Models

Model

A Roboflow model.

Source code in roboflow/core/model.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class Model:
    """
    A Roboflow model.
    """

    def __init__(self, model):
        self.id = model["id"]
        self.endpoint = model["endpoint"]
        self.duration = model["end"] - model["start"]
        self.statistics = {
            "recall": model["recall"],
            "precision": model["precision"],
            "map": model["map"],
        }