Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
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