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
Why does the Split operator not keep the values?
Hello everyone,
As usual, I have quite a simple task to do but I haven't found an easy answer to it yet.
Let's say I have that Example Set:
And I want to split it to get that new Example Set:
What I thought first was: "Hey! You can do that! Let's do a Transpose, then a Split, and a Transpose again!" But this is what I get:
Why did the Split operator not keep the values associated to the split examples? And what can I do to keep them?
I'm sorry if my question is obvious: I'm still exploring RapidMiner
Thanks a lot and best to all,
Sylvain
As usual, I have quite a simple task to do but I haven't found an easy answer to it yet.
Let's say I have that Example Set:
Sale | Clients | Product |
A | x | CCD |
B | x ; y | CCD |
C | y | CS |
D | y | CCD |
E | x ; z | DU |
F | x ; y ; z | CS |
G | y ; z | DU |
And I want to split it to get that new Example Set:
Sale | Clients | Product |
A | x | CCD |
B | x | CCD |
B | y | CCD |
C | y | CS |
D | y | CCD |
E | x | DU |
E | z | DU |
F | x | CS |
F | y | CS |
F | z | CS |
G | y | DU |
G | z | DU |
What I thought first was: "Hey! You can do that! Let's do a Transpose, then a Split, and a Transpose again!" But this is what I get:
Sale | Clients | Product |
? | y | ? |
? | z | ? |
? | y | ? |
? | z | ? |
? | z | ? |
A | x | CCD |
B | x | CCD |
C | y | CS |
D | y | CCD |
E | x | DU |
F | x | CS |
G | y | DU |
Why did the Split operator not keep the values associated to the split examples? And what can I do to keep them?
I'm sorry if my question is obvious: I'm still exploring RapidMiner
Thanks a lot and best to all,
Sylvain
Tagged:
0
Best Answer
-
SylvainM Member Posts: 18 MavenHello Ingo,
Your solution works perfectly well! It is short and clear, as I like
Thank you soooo much! I'm learning a lot with you help.
Best,
Sylvain0
Answers
Hello everyone,
After an hour of thought, I now understand why I got that result: Split gives an empty value if there is nothing to split; it doesn't copy the example.
It does not solve my problem, however, which is to copy the example when there's nothing to split... Any advice on that point?
Thanks a lot for your help
Sylvain
Ingo