You are viewing the RapidMiner Studio documentation for version 10.0 - Check here for latest version
Weights to Data (RapidMiner Studio Core)
Synopsis
This operator takes attribute weights as input and delivers an ExampleSet with attribute names and corresponding weights as output.Description
The Weights to Data operator takes attribute weights as input and delivers an ExampleSet with attribute names and corresponding weights as output. The resultant ExampleSet has two attributes 'Attribute' and 'Weight'. The 'Attribute' attribute stores the names of attributes and the 'Weight' attribute stores the weight of the corresponding attribute. This ExampleSet has n number of examples; where n is the number of attributes in the input weights vector. There are numerous operators that provide attribute weights at 'Modeling/Attribute Weighting' in the Operators Window.
Input
- attribute weights (Attribute Weights)
This input port expects weights of attributes. It is the output of the Weight by Chi Squared Statistic operator in the attached Example Process.
Output
- example set (Data Table)
The ExampleSet that contains attribute names and corresponding weights is delivered through this port.
Tutorial Processes
Calculating the weights of the attributes of the Golf data set and storing them in an ExampleSet
The 'Golf' data set is loaded using the Retrieve operator. The Weight by Chi Squared Statistic operator is applied on it to calculate the weights of the attributes. All parameters are used with default values. The normalize weights parameter is set to true, thus all the weights will be normalized in range 0 to 1. The sort weights parameter is set to true and the sort direction parameter is set to 'ascending', thus the results will be in ascending order of the weights. A breakpoint is inserted here to show the weights produced by the Weight by Chi Squared Statistic operator. These weights are provided as input to the Weights to Data operator which stores these weights in form of an ExampleSet. The ExampleSet can be seen in the Results Workspace.