Node Class
Represents a basic unit in a graph, for example, it could be any datasource or step.
Initialize Node.
- Inheritance
-
builtins.objectNode
Constructor
Node(graph, node_id, name=None, module=None, module_builder=None, datasource=None, datasource_builder=None, module_wiring=None)
Parameters
- module_builder
- <xref:azureml.pipeline.core._ModuleBuilder>
The module builder associated with the Node.
- datasource_builder
- <xref:azureml.pipeline.core._DatasourceBuilder>
The datasource builder associated with the Node.
A mapping between the node's inputs/outputs and the module inputs/outputs. Holds two keys, inputs and outputs, each mapped to a dict whose keys are the module's inputs/outputs names, and the values are the node's ports.
- module_builder
- <xref:azureml.pipeline.core._ModuleBuilder>
The module builder associated with the Node.
- datasource_builder
- <xref:azureml.pipeline.core._DatasourceBuilder>
The datasource builder associated with the Node.
A mapping between the node's inputs/outputs and the module inputs/outputs. Holds two keys, inputs and outputs, each mapped to a dict whose keys are the module's inputs/outputs names, and the values are the node's ports.
Methods
get_input |
Return an InputPort by name. |
get_output |
Return an OutputPort by name. |
get_param |
Return a parameter by name. |
run_after |
Run this node after the given node. If you want to run a step, for example, step3 after both step1 and step2 are completed, you can use:
|
sequence |
Configure a list of nodes to run in sequence after this node. |
get_input
Return an InputPort by name.
get_input(name)
Parameters
Returns
The input port with the matching name.
Return type
get_output
Return an OutputPort by name.
get_output(name)
Parameters
Returns
The output port
Return type
get_param
Return a parameter by name.
get_param(name)
Parameters
Returns
The parameter.
Return type
run_after
Run this node after the given node.
If you want to run a step, for example, step3 after both step1 and step2 are completed, you can use:
step3.run_after(step1)
step3.run_after(step2)
run_after(node)
Parameters
sequence
Configure a list of nodes to run in sequence after this node.
sequence(nodes)
Parameters
Attributes
datasource_def
input_dict
inputs
module_def
name
node_id
output_dict
Get a dictionary containing all outputs.
Returns
Dictionary of {output name, OutputPort}
Return type
outputs
params
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for