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 can I compute/derive additional attributes?
ChrisNelson
Member Posts: 11 Contributor II
I have a dataset with two columns, A, and B. For each record, i want to compute C = (B-A)/B. Can I do that in RapidMiner transformations? Can you direct me to the right one?
I also want to compute the overall C. That is ((B1 + B2 + B3 ...) - (A1 + A2 + A3 ...)) / (B1 + B2 + B3 ...). Can I compute this aggregate function? How? (I think this is a special case of a weighted average which I think I've seen reference to but haven't found the method for computing.)
Thanks.
I also want to compute the overall C. That is ((B1 + B2 + B3 ...) - (A1 + A2 + A3 ...)) / (B1 + B2 + B3 ...). Can I compute this aggregate function? How? (I think this is a special case of a weighted average which I think I've seen reference to but haven't found the method for computing.)
Thanks.
0
Answers
Use Generate Aggregation to create new attributes based on a function applied to attributes within a single example of an example set
regards
Andrew
* attribute name
* attribute filter type
* invert selection
* include special attributes
* aggregation function
* keep all
* ignore missings
Is this a bug or am I missing a step?
Given:
use Aggregate (not Create Aggregation) to create column-wise sum-aggregations. You will end up with a new example set, on which you can apply the formula (sum(A)-sum(B))/sum(A).
Please note that Generate Attributes cannot handle attributes with parenthesis in their names, so you have to rename the aggregation attributes. Please have a look at the attached process.
Happy Mining!
~Marius