Skip to main content

Generate Empty Attribute

Synopsis

This operator adds a new attribute of specified name and type to the input ExampleSet.

Description

The Generate Empty Attribute operator creates an empty attribute of specified name and type which are specified by the name and the value type parameter respectively. One of the following types can be selected: nominal, numeric, integer, real, text, binominal, polynominal, file_path, date_time, date, time. Please note that all values are missing right after creation of the attribute. The operators like the <reference key="operator.set_data">Set Data</reference> operator can be used to fill values of this attribute. Please note that the name of the attribute can be changed later by the <reference key="operator.blending:rename">Rename</reference> operator and many type conversion operators are also available for changing the type of the attribute. Please note that this operator creates an empty attribute independent of the input ExampleSet, if you want to generate an attribute from the existing attributes of the input ExampleSet you can use the <reference key="operator.generate_attributes">Generate Attributes</reference> operator.

Input

example set input

This input port expects an ExampleSet. It is the output of the Retrieve operator in the attached Example Process. The output of other operators can also be used as input.

Output

example set output

An empty attribute of the specified name and type is added to the input ExampleSet and the resultant ExampleSet is delivered through this output 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

Name

This parameter specifies the name of the new attribute. Please note that the names of attributes should be unique. Please make sure that the input ExampleSet does not have an attribute with the same name.

Value type

The type of the new attribute is specified by this parameter. One of the following types can be selected: nominal, numeric, integer, real, text, binominal, polynominal, file_path, date_time, date, time.