Generates importer's output dict.
tfx.components.common_nodes.importer_node.generate_output_dict(
metadata_handler: tfx.orchestration.metadata.Metadata
,
uri: Text,
properties: Dict[Text, Any],
custom_properties: Dict[Text, Any],
reimport: bool,
output_artifact_class: Type[tfx.types.Artifact
],
mlmd_artifact_type: Optional[metadata_store_pb2.ArtifactType] = None
) -> Dict[Text, List[types.Artifact]]
If there is already an artifact in MLMD with the same URI and properties /
custom properties, that artifact will be reused unless the reimport
argument is set to True.
Args |
metadata_handler
|
The handler of MLMD.
|
uri
|
The uri of the artifact.
|
properties
|
The properties of the artifact, given as a dictionary from
string keys to integer / string values. Must conform to the declared
properties of the destination channel's output type.
|
custom_properties
|
The custom properties of the artifact, given as a
dictionary from string keys to integer / string values.
|
reimport
|
If set to True, will register a new artifact even if it already
exists in the database.
|
output_artifact_class
|
The class of the output artifact.
|
mlmd_artifact_type
|
The MLMD artifact type of the Artifact to be created.
|
Returns |
a dictionary with the only key result whose value is the Artifact.
|