The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
How to construct the corss-product/cartesian-product attribute in RapidMiner
I am trying to construct the cross product attribute in RapidMiner, but haven't find the way yet.
If attributes A1 (level=1,2 or 3) and A2(contribution=1,2,3, or 4) are known, now want to construct the new attribute A3 = A1 X A2 , eg. one new attribute will be (level=2,contribution=3),
Which operator should I use? the AttributeConstruction, AttributeMerge or other? I fail to see the corss product formula available in AttributeConstruciton, and as the cross-product consider the vector or space position as I see, so the simply merge two attributes may not be appropriate either.
So how can I build the new attributes, appreciate your suggestion.
If attributes A1 (level=1,2 or 3) and A2(contribution=1,2,3, or 4) are known, now want to construct the new attribute A3 = A1 X A2 , eg. one new attribute will be (level=2,contribution=3),
Which operator should I use? the AttributeConstruction, AttributeMerge or other? I fail to see the corss product formula available in AttributeConstruciton, and as the cross-product consider the vector or space position as I see, so the simply merge two attributes may not be appropriate either.
So how can I build the new attributes, appreciate your suggestion.
0
Answers
currently it's not clear to me, what you are going to do. Do you wish to concatenate nominal attributes? Then use the attribute construction.
Do you wish to multiply a fixed set of numerical attributes? Then use the attribute construction, and build the cross product.
There's no crossproduct operator available in RapidMiner, because you would have to specify either way, which attributes are part of either the first or the second vector. You could simply type it into the AttributeConstruction operator.
Greetings,
Sebastian
well, it is rather likely that you are you searching the operator "Cartesian" (surprise! ). Here is a sample process (for RM 5): Hope that gives you the idea.
Cheers,
Ingo
em, so, can I simply use the nominal attribute to replace the Cartesian product.
eg. can I simply use the nominal attribute A3 {11,12,13,14,21,22,23,24,31,32,33,34} to represent the Cartesian product A3=A1 X A2? where A1 (level=1,2 or 3) and A2(contribution=1,2,3, or 4).
Or I cannot, the two ways are not equal?
depends on what you are going to do, I guess. You might do this, but you get one single attribute with a huge number of nominal values. If that's sensible depends on what you need the data for.
Greetings,
Sebastian
Do you think by using the nominal attribute A3 {11,12,13,14,21,22,23,24,31,32,33,34} is suitable?
Will this set considers the "space density feature" or not? I mean like, put on the 2D graph, x axis - A1, y axis - A2, if the final attribute turn to be "1" more often in the point A3 {11}, so will the algorithm considering
the neighboring points {12},{22},{21} will also likely influence the final attribute result to be "1"?
14 24 34
13 23 33
12 22 32
11 21 31
If there is no such "space density feature" considered in the cross product construction, so I think we could simply use the A3 {11,12,13,14,21,22,23,24,31,32,33,34}.
I hope my question explanation is bit more clearly.