Categories

Versions

You are viewing the RapidMiner Studio documentation for version 8.2 - Check here for latest version

Generate Products (RapidMiner Studio Core)

Synopsis

This operator generates new attributes by taking the products of the specified attributes.

Description

The Generate Products operator generates new attributes by taking the products of the specified attributes. The attributes are specified through the first attribute name and second attribute name parameters. For example, if the first attribute name parameter has attributes A and B, and the second attribute name has attributes C and D. Then four attributes A*C, A*D, B*C and B*D will be generated by this operator. These attributes will have products of the corresponding attribute values.

Input

  • example set input (Data Table)

    This input port expects an ExampleSet. It is output of the Generate Data operator in the attached Example Process.

Output

  • example set output (Data Table)

    New attributes are generated by taking the products of the specified attributes and the resultant ExampleSet is returned through this port.

  • original (Data Table)

    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

  • first_attribute_nameThis parameter specifies the name(s) of the first attribute(s) to be multiplied. Attribute names can be specified through regular expressions. Range: string
  • second_attribute_nameThis parameter specifies the name(s) of the second attribute(s) to be multiplied. Attribute names can be specified through regular expressions. Range: string

Tutorial Processes

Generating products of attributes

The Generate Data operator provides a sample ExampleSet. A breakpoint is inserted here so that you can have a look at the ExampleSet. You can see that the ExampleSet has four real attributes i.e. att1, att2, att3 and att4. The Generate Products operator is applied on this ExampleSet. Have a look at the parameters of this operator. The att1 and att2 attributes are selected through the first attribute name parameter. The att3 and att4 attributes are selected through the second attribute name parameter. The resultant ExampleSet can be seen in the Results Workspace. You can see that this ExampleSet has new attributes that have been generated by multiplying the first attribute name attributes with the second attribute name attributes.