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
[SOLVED] split example set by value of nominal attribute
Hallo,
I would like split the example set of the data by nominal attribute.
This attribute contains about 40000 examples of for example "A", "B" and "C" .
I would like all equal examples in one example set, one example set vor "A", one for "B" and one for "C".
I tried it with loop_value and filter_example (MyAttribute=%{loop_value}) but it doesn't work so.
Without filter_example it gives me several example sets but don't split in "A", "B" and "C" and with this operator it gives me also several example sets but without examples.
I need this because I would calculate the values of another attribute according to "A", "B" and "C".
After this the serveral example sets should combine again.
Can anybody help me please?
Thanks in advance,
Regina
I would like split the example set of the data by nominal attribute.
This attribute contains about 40000 examples of for example "A", "B" and "C" .
I would like all equal examples in one example set, one example set vor "A", one for "B" and one for "C".
I tried it with loop_value and filter_example (MyAttribute=%{loop_value}) but it doesn't work so.
Without filter_example it gives me several example sets but don't split in "A", "B" and "C" and with this operator it gives me also several example sets but without examples.
I need this because I would calculate the values of another attribute according to "A", "B" and "C".
After this the serveral example sets should combine again.
Can anybody help me please?
Thanks in advance,
Regina
0
Answers
can you please post the XML of your process as described in the post that is linked in my signature?
Best regards,
Marius
i wish you a happy new year and thank you for your reply.
I have found a way.
I read the database usually with "Read Database" and define a query (dynamic) but then I can't take the "Loop_values" operator.
But why it doesn't work in this way?
So I export the data in excel and then import in the repository and it works with "Loop_values".
Can you say me, how I can combine the splitted example sets again? I would like calculate the average of a numerical attribute and put the result of all example sets in the collection out in one example set.
Thank you and best regards,
Regina
Best regards,
Marius
If I have two sepapate example sets, I can combine these with the Operator "Union". But it doesn't work with a collection because the example sets are only in one Operator (loop values).
I wanted write the examples in excel file (Operator "Write Excel" within the Loop_values) but it writes only the average of one example set.
Sorry for my caotic description.
Best regards,
Regina
Append should usually be preferred over Union anyway - you only need Union when the structure of the example sets is different.
Best regards and happy mining!
~Marius
Thank you very much!
Best regards,
Regina