![]() |
Sensitive data, such as PII (personally-identifiable information).
Inherits From: BaseModelCardField
model_card_toolkit.SensitiveData(
sensitive_data: List[str] = dataclasses.field(default_factory=list),
_proto_type: dataclasses.InitVar[type(model_card_pb2.SensitiveData)] = model_card_pb2.SensitiveData
)
Attributes | |
---|---|
sensitive_data
|
A description of any sensitive data that may be present in a dataset. Be sure to note PII information such as names, addresses, phone numbers, etc. Preferably, such info should be scrubbed from a dataset if possible. Note that even non-identifying information, such as zip code, age, race, and gender, can be used to identify individuals when aggregated. Please describe any such fields here. |
Methods
clear
clear()
Clear the subfields of this BaseModelCardField.
copy_from_proto
copy_from_proto(
proto: message.Message
) -> 'BaseModelCardField'
Copies the contents of the model card proto into current object.
merge_from_proto
merge_from_proto(
proto: message.Message
) -> 'BaseModelCardField'
Merges the contents of the model card proto into current object.
to_dict
to_dict() -> Dict[str, Any]
Convert your model card to a python dictionary.
to_json
to_json() -> str
Convert this class object to json.
to_proto
to_proto() -> message.Message
Convert this class object to the proto.
__eq__
__eq__(
other
)