Skip to content

storage_cost

mlte/qa_category/costs/storage_cost.py

StorageCost QACategory definition.

StorageCost

Bases: QACategory

The StorageCost QACategory reflects the cost of model storage.

Source code in mlte/qa_category/costs/storage_cost.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class StorageCost(QACategory):
    """
    The StorageCost QACategory reflects the cost of model storage.
    """

    def __init__(self, rationale: str):
        """Initialize a StorageCost instance."""
        super().__init__(
            instance=self,
            description="""
                The StorageCost QACategory assesses the storage requirements of a
                model. These requirements may be expressed in a variety of ways,
                including the physical size of the model when it is persisted
                to stable storage, or the number of parameters it contains.
                """,
            rationale=rationale,
        )

__init__(rationale)

Initialize a StorageCost instance.

Source code in mlte/qa_category/costs/storage_cost.py
15
16
17
18
19
20
21
22
23
24
25
26
def __init__(self, rationale: str):
    """Initialize a StorageCost instance."""
    super().__init__(
        instance=self,
        description="""
            The StorageCost QACategory assesses the storage requirements of a
            model. These requirements may be expressed in a variety of ways,
            including the physical size of the model when it is persisted
            to stable storage, or the number of parameters it contains.
            """,
        rationale=rationale,
    )