class_docstr: Custom TFX Hello World Component.
  
  This custom component class consists of only a constructor.
class_docstr_tok: ["Custom","TFX","Hello","World","Component",".","This","custom","component","class","consists","of","only","a","constructor","."]
docstr: Construct a HelloComponent.
  
  Args:
    input_data: A Channel of type `standard_artifacts.Examples`. This will
      often contain two splits: 'train', and 'eval'.
    output_data: A Channel of type `standard_artifacts.Examples`. This will
      usually contain the same splits as input_data.
    name: Optional unique name. Necessary if multiple Hello components are
      declared in the same pipeline.
docstr_tok: ["Construct","a","HelloComponent",".","Args",":","input_data",":","A","Channel","of","type","`","standard_artifacts.Examples","`",".","This","will","often","contain","two","splits",":","'train","'",",","and","'eval","'",".","output_data",":","A","Channel","of","type","`","standard_artifacts.Examples","`",".","This","will","usually","contain","the","same","splits","as","input_data",".","name",":","Optional","unique","name",".","Necessary","if","multiple","Hello","components","are","declared","in","the","same","pipeline","."]
code: def __init__(
      self,
      input_data: types.Channel = None,
      output_data: types.Channel = None,
      name: Optional[str] = None,
  ):
      """Construct a HelloComponent.
  
      Args:
        input_data: A Channel of type `standard_artifacts.Examples`. This will
          often contain two splits: 'train', and 'eval'.
        output_data: A Channel of type `standard_artifacts.Examples`. This will
          usually contain the same splits as input_data.
        name: Optional unique name. Necessary if multiple Hello components are
          declared in the same pipeline.
      """
      # output_data will contain a list of Channels for each split of the data,
      # by default a 'train' split and an 'eval' split. Since HelloComponent
      # passes the input data through to output, the splits in output_data will
      # be the same as the splits in input_data, which were generated by the
      # upstream component.
      if not output_data:
          output_data = channel_utils.as_channel(
              [standard_artifacts.Examples()]
          )
  
      spec = HelloComponentSpec(
          input_data=input_data, output_data=output_data, name=name
      )
      super().__init__(spec=spec)
  
file_path: tfx/tfx/examples/custom_components/hello_world/hello_component/component.py
imports: from typing import Optional
  from tfx import types
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import executor_spec
  from tfx.examples.custom_components.hello_world.hello_component import executor
  from tfx.types import channel_utils
  from tfx.types import standard_artifacts
  from tfx.types.component_spec import ChannelParameter
  from tfx.types.component_spec import ExecutionParameter
label_desc: Use image node_id 1 to create a new HelloComponent object from inherited base classes: base_component with example: obj = HelloComponent(input_data, output_data, name)