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.
[SOLVED] How I can accumulate values?
AreliBallina
Member Posts: 8 Contributor II
Hello all!!
I 'm trying to obtain a cumulative values for then select only the values that generate 80%.
I'm expecting the column "NewValue" (accumulated)
Numb %TA NewValue
1 0.09 0.09
2 0.06 0.15 (0.09+0.06)
3 0.2 0.35 (0.15+0.2)
4 0.4 0.75 (0.35+0.4)
5 0.05 0.8 (0.75+0.05)
6 .... .....
But instead this, I obtain the same column %TA
Numb %TA NewValue
1 0.09 0.09
2 0.06 0.06
3 0.2 0.2
4 0.4 0.4
5 0.05 0.05
6 .... .....
The operators I'm using are:
1) Generatte attibute
attribute name: NewValue
function expressions: 0
2) Set macro
macro: accumulate
value: 0
3)Loop examples
interation macro: example
Inside Loop examples:
4) Extract macro
macro: value
macro type: data_value
attibute name: %
example index: %{example}
5) Generate Macro
macroname: new
functions expressions: %{accumulate}+%{value}
6) Set Data
example index: %{example}
attibute name: Newvalue
value: %{new}
Could you have any idea to how solve this??
Thank you!!!
Areli
I 'm trying to obtain a cumulative values for then select only the values that generate 80%.
I'm expecting the column "NewValue" (accumulated)
Numb %TA NewValue
1 0.09 0.09
2 0.06 0.15 (0.09+0.06)
3 0.2 0.35 (0.15+0.2)
4 0.4 0.75 (0.35+0.4)
5 0.05 0.8 (0.75+0.05)
6 .... .....
But instead this, I obtain the same column %TA
Numb %TA NewValue
1 0.09 0.09
2 0.06 0.06
3 0.2 0.2
4 0.4 0.4
5 0.05 0.05
6 .... .....
The operators I'm using are:
1) Generatte attibute
attribute name: NewValue
function expressions: 0
2) Set macro
macro: accumulate
value: 0
3)Loop examples
interation macro: example
Inside Loop examples:
4) Extract macro
macro: value
macro type: data_value
attibute name: %
example index: %{example}
5) Generate Macro
macroname: new
functions expressions: %{accumulate}+%{value}
6) Set Data
example index: %{example}
attibute name: Newvalue
value: %{new}
Could you have any idea to how solve this??
Thank you!!!
Areli
0
Answers
example process:
Dortmund, Germany
Thank you very much!! I downloaded the extension, tried it and it fixed!!
Regards!!
Areli