Transpose by a Column

User: "Shubha"
New Altair Community Member
Updated by Jocelyn
Hi,

Can I transpose an exampleset (data) by a group variable? Because i see no options in the 'ExampleSetTranspose' to give parameters like a do transpose 'by' a variable. This operator tranposes the whole data. Instead, can we specify the variable by which we need the transpose?

For example, in the below code I wanted to transpose the data by the 'Group' variable.

<operator name="Root" class="Process" expanded="yes">
    <operator name="ExampleSetGenerator" class="ExampleSetGenerator">
        <parameter key="target_function" value="random"/>
        <parameter key="number_examples" value="10"/>
        <parameter key="number_of_attributes" value="1"/>
    </operator>
    <operator name="AttributeConstruction" class="AttributeConstruction">
        <list key="function_descriptions">
          <parameter key="Group" value="if(att1&gt;0,1,0)"/>
        </list>
    </operator>
    <operator name="ExampleSetTranspose" class="ExampleSetTranspose">
    </operator>
</operator>


Please let me know if the question is unclear. It is just like 'PROC TRANSPOSE... by var" in SAS. Or if there is any other operator for this purpose?

Many thanks for your help,
Shubha

Find more posts tagged with