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
Append error message
Hi,
I want to append one attribute to another one that has already been processed, meaning that it is in the form of a vector space model. The attribute that I want to append is the category of the processed example.
The two attributes are of the exact same length. However, when I try to append these I get the error message: Example sets are not compatible and the operator expected one or more example sets which are compatible to other ones. This usually means that they must have the same number of attributes and attribute names. But as far as my knowledge goes, they are. Is this because of the vector space model? How can I link my category to my exampleset if this doesn't work? I can't link them before the exampleset gets processed because it will then process the category as well, which I don't want.
Thanks
-Prentice
I want to append one attribute to another one that has already been processed, meaning that it is in the form of a vector space model. The attribute that I want to append is the category of the processed example.
The two attributes are of the exact same length. However, when I try to append these I get the error message: Example sets are not compatible and the operator expected one or more example sets which are compatible to other ones. This usually means that they must have the same number of attributes and attribute names. But as far as my knowledge goes, they are. Is this because of the vector space model? How can I link my category to my exampleset if this doesn't work? I can't link them before the exampleset gets processed because it will then process the category as well, which I don't want.
Thanks
-Prentice
Tagged:
0
Best Answers
-
SGolbert RapidMiner Certified Analyst, Member Posts: 344 UnicornHi Prentice,I am a little confused about your description (an example would help), but I think that you are using the Append operator incorrectly: the Append operator puts Example sets which have the same columns together, i.e. it works at the ROW level.If you want to add a new attribute you have a couple of options:
- Use the Join operator (requires an id column or key on both example sets)
- Use the Generate Attributes operator, in case the information required for the new attribute can be derived or extracted from other attributes
- Use the Merge operator, requires same number of rows (this could be your case)
RegardsSebastian1 -
SGolbert RapidMiner Certified Analyst, Member Posts: 344 UnicornHi Prentice,In regard to the second question, it depends. If by work you mean that it doesn't throw an error, the bare minimum that you need is a label (by using the Set Role operator). Then each classification algorithm has different requirements regarding data quality: some accept missing values and some not, some accept nominal attributes and some not, etc.You can right clic on the modeling operator and select "Show operator info..." to get an overview of the requirements.Kind regardsSebastian5
Answers
After messing about with Join, I think I got it to work. Now my output is an id, my Categorisation attribute and the word matrix of my attribute which needs to be categorised. To add another question, is this (without the id attribute) all that's necessary for a cross validation and classification algorithm to work? I have already made the categorisation attribute a label.
Thanks
-Prentice