Set Data
Synopsis
This operator sets the value of one or more attributes of the specified example.
Description
The Set Data operator sets the value of one or more attributes of the specified example of the input ExampleSet. The example is specified by the example index parameter. The attribute name parameter specifies the attribute whose value is to be set. The value parameter specifies the new value. Values of other attributes of the same example can be set by the additional values parameter. Please note that the values should be consistent with the type of the attribute e.g. specifying a string value is not allowed for an integer type attribute.
Input
example set input
This input port expects an ExampleSet. It is the output of the Retrieve operator in the attached Example Process.
Output
example set output
The ExampleSet with new values of the selected example's attributes is output of this port.
original
The ExampleSet that was given as input is passed without changing to the output through this port. This is usually used to reuse the same ExampleSet in further operators or to view the ExampleSet in the Results Workspace.
Parameters
Example index
This parameter specifies the index of the example whose value should be set. Please note that counting starts from 1.
Attribute name
This parameter specifies the name of the attribute whose value should be set.
Count backwards
If set to true, the counting order is reversed. The last example is addressed by index 1, the second last example is addressed by index 2 and so on.
Value
This parameter specifies the new value of the selected attribute (selected by the attribute name parameter) of the specified example (specified by the example index parameter).
Additional values
The values of other attributes of the same example can be set by this parameter.