model_card_toolkit.Owner
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
The information about owners of a model.
Inherits From: BaseModelCardField
model_card_toolkit.Owner(
name: Optional[str] = None,
contact: Optional[str] = None,
_proto_type: dataclasses.InitVar[type(model_card_pb2.Owner)] = model_card_pb2.Owner
)
Attributes |
name
|
The name of the model owner.
|
contact
|
The contact information for the model owner or owners. These could
be individual email addresses, a team mailing list expressly, or a
monitored feedback form.
|
Methods
clear
View source
clear()
Clear the subfields of this BaseModelCardField.
copy_from_proto
View source
copy_from_proto(
proto: message.Message
) -> 'BaseModelCardField'
Copies the contents of the model card proto into current object.
merge_from_proto
View source
merge_from_proto(
proto: message.Message
) -> 'BaseModelCardField'
Merges the contents of the model card proto into current object.
to_dict
View source
to_dict() -> Dict[str, Any]
Convert your model card to a python dictionary.
to_json
View source
to_json() -> str
Convert this class object to json.
to_proto
View source
to_proto() -> message.Message
Convert this class object to the proto.
__eq__
__eq__(
other
)
__len__
View source
__len__() -> int
Returns the number of items in a field.
Ignores None values recursively,
so the length of a field that only contains another field that has all None
values would be 0.
Class Variables |
contact
|
None
|
name
|
None
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-21 UTC."],[],[],null,["# model_card_toolkit.Owner\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/model-card-toolkit/blob/v2.0.0/model_card_toolkit/model_card.py#L32-L46) |\n\nThe information about owners of a model.\n\nInherits From: [`BaseModelCardField`](../model_card_toolkit/BaseModelCardField) \n\n model_card_toolkit.Owner(\n name: Optional[str] = None,\n contact: Optional[str] = None,\n _proto_type: dataclasses.InitVar[type(model_card_pb2.Owner)] = model_card_pb2.Owner\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | The name of the model owner. |\n| `contact` | The contact information for the model owner or owners. These could be individual email addresses, a team mailing list expressly, or a monitored feedback form. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `clear`\n\n[View source](https://github.com/tensorflow/model-card-toolkit/blob/v2.0.0/model_card_toolkit/base_model_card_field.py#L174-L182) \n\n clear()\n\nClear the subfields of this BaseModelCardField.\n\n### `copy_from_proto`\n\n[View source](https://github.com/tensorflow/model-card-toolkit/blob/v2.0.0/model_card_toolkit/base_model_card_field.py#L129-L132) \n\n copy_from_proto(\n proto: message.Message\n ) -\u003e 'BaseModelCardField'\n\nCopies the contents of the model card proto into current object.\n\n### `merge_from_proto`\n\n[View source](https://github.com/tensorflow/model-card-toolkit/blob/v2.0.0/model_card_toolkit/base_model_card_field.py#L122-L127) \n\n merge_from_proto(\n proto: message.Message\n ) -\u003e 'BaseModelCardField'\n\nMerges the contents of the model card proto into current object.\n\n### `to_dict`\n\n[View source](https://github.com/tensorflow/model-card-toolkit/blob/v2.0.0/model_card_toolkit/base_model_card_field.py#L168-L172) \n\n to_dict() -\u003e Dict[str, Any]\n\nConvert your model card to a python dictionary.\n\n### `to_json`\n\n[View source](https://github.com/tensorflow/model-card-toolkit/blob/v2.0.0/model_card_toolkit/base_model_card_field.py#L164-L166) \n\n to_json() -\u003e str\n\nConvert this class object to json.\n\n### `to_proto`\n\n[View source](https://github.com/tensorflow/model-card-toolkit/blob/v2.0.0/model_card_toolkit/base_model_card_field.py#L51-L81) \n\n to_proto() -\u003e message.Message\n\nConvert this class object to the proto.\n\n### `__eq__`\n\n __eq__(\n other\n )\n\n### `__len__`\n\n[View source](https://github.com/tensorflow/model-card-toolkit/blob/v2.0.0/model_card_toolkit/base_model_card_field.py#L39-L44) \n\n __len__() -\u003e int\n\nReturns the number of items in a field.\nIgnores None values recursively,\nso the length of a field that only contains another field that has all None\nvalues would be 0.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|---------|--------|\n| contact | `None` |\n| name | `None` |\n\n\u003cbr /\u003e"]]