|View source on GitHub|
The information about verions of a model.
model_card_toolkit.Version( name: Optional[str] = None, date: Optional[str] = None, diff: Optional[str] = None, _proto_type: dataclasses.InitVar[type(model_card_pb2.Version)] = model_card_pb2.Version )
If there are multiple versions of the model, or there may be in the future, it’s useful for your audience to know which version of the model is discussed in the Model Card. If there are previous versions of this model, briefly describe how this version is different. If no more than one version of the model will be released, this field may be omitted.
||The name of the version.|
||The date this version was released.|
||The changes from the previous version.|
Clear the subfields of this BaseModelCardField.
copy_from_proto( proto: message.Message ) -> 'BaseModelCardField'
Copies the contents of the model card proto into current object.
merge_from_proto( proto: message.Message ) -> 'BaseModelCardField'
Merges the contents of the model card proto into current object.
to_dict() -> Dict[str, Any]
Convert your model card to a python dictionary.
to_json() -> str
Convert this class object to json.
to_proto() -> message.Message
Convert this class object to the proto.
__eq__( other )