Generates a MLMD event given type, key and index.
tfx.orchestration.portable.mlmd.event_lib.generate_event(
event_type: metadata_store_pb2.Event.Type,
key: Text,
index: int,
artifact_id: Optional[int] = None,
execution_id: Optional[int] = None
) -> metadata_store_pb2.Event
Args |
event_type
|
The type of the event. e.g., INPUT, OUTPUT, etc.
|
key
|
The key of the input or output channel. Usually a key can uniquely
identify a channel of a TFX node.
|
index
|
The index of the artifact in a channel. For example, a trainer might
take more than one Example artifacts in one of its input channels. We need
to distinguish each artifact when creating events.
|
artifact_id
|
Optional artifact id for the event.
|
execution_id
|
Optional execution id for the event.
|
Returns |
A metadata_store_pb2.Event message.
|