Skip to content

check_model_descriptions

This check validates that a model has specified a description in its model config.

Parameters

Name Default Type Description
minimum_length 10 int The minimum length of the description

Info

For more information about how to set custom parameters for a check, see the documentation on configuration.

Source

def check(model: dict, minimum_length: int = 10):
    assert model["description"] is not None
    assert len(model["description"]) > minimum_length