tfx.v1.dsl.Importer
Stay organized with collections
Save and categorize content based on your preferences.
Definition for TFX Importer.
Inherits From: BaseNode
tfx.v1.dsl.Importer(
source_uri: str,
artifact_type: Type[tfx.v1.dsl.Artifact
],
reimport: Optional[bool] = False,
properties: Optional[Dict[str, Union[str, int]]] = None,
custom_properties: Optional[Dict[str, Union[str, int]]] = None,
output_key: Optional[str] = None
)
Used in the notebooks
The Importer is a special TFX node which registers an external resource into
MLMD so that downstream nodes can use the registered artifact as an input.
Here is an example to use the Importer:
importer = Importer(
source_uri='uri/to/schema',
artifact_type=standard_artifacts.Schema,
reimport=False).with_id('import_schema')
schema_gen = SchemaGen(
fixed_schema=importer.outputs['result'],
examples=...)
Args |
source_uri
|
the URI of the resource that needs to be registered.
|
artifact_type
|
the type of the artifact to import.
|
reimport
|
whether or not to re-import as a new artifact if the URI has
been imported in before.
|
properties
|
Dictionary of properties for the imported Artifact. These
properties should be ones declared for the given artifact_type (see the
PROPERTIES attribute of the definition of the type for details).
|
custom_properties
|
Dictionary of custom properties for the imported
Artifact. These properties should be of type Text or int.
|
output_key
|
The key to use for the imported artifact in the Importer's
output dictionary. Defaults to 'result'.
|
Attributes |
outputs
|
Output Channel dict that contains imported artifacts.
|
Methods
with_node_execution_options
with_node_execution_options(
node_execution_options: utils.NodeExecutionOptions
) -> typing_extensions.Self
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 2024-05-03 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 2024-05-03 UTC."],[],[]]