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
How to label clusters in output?
mauricenew
Member Posts: 4 Learner I
Hey,
I am using k-means to cluster a dataset but want to have the "prediction" (the cluster is based on) as a label outputted. Right now it gives me my different IDs and their word-content plus "cluster_02" or "cluster_17" but it would be nice to see "word x" instead of "cluster_02" so I can easily filter in excel for stuff I was searching for. To sum up: instead of a name like "cluster_02" I want a name based on the highest probilitiy. i.e. a cluster contains phrases containing the word "ananas", the label should be "ananas" and not "cluster_02".
Question 2: why is "nominal to text" deleting all numbers instead of converting them to text?
I am using k-means to cluster a dataset but want to have the "prediction" (the cluster is based on) as a label outputted. Right now it gives me my different IDs and their word-content plus "cluster_02" or "cluster_17" but it would be nice to see "word x" instead of "cluster_02" so I can easily filter in excel for stuff I was searching for. To sum up: instead of a name like "cluster_02" I want a name based on the highest probilitiy. i.e. a cluster contains phrases containing the word "ananas", the label should be "ananas" and not "cluster_02".
Question 2: why is "nominal to text" deleting all numbers instead of converting them to text?
Tagged:
0
Answers
For the second item, it sounds like you are using the wrong operator. If you are trying to turn numbers into text, you want "Numerical to Nominal" and not "Nominal to Text".
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Regarding 2): well usually numbers also occur inside of text, its a mix of text and numbers like "yes we have the modellnumber xyz23 on stock". so far "23" etc is always deleted and wont appear as tokenized items (leftover is: xyz") I use "read from excel" as the source
read from excel -> nominal to text -> process documents from data
process documents from data needs text as input, thats why im doing that but it removes all numbers
Update: got it, had to switch to "linguistic tokens" instead of "non-letters" inside the tokenize operator
Upate2: but now it takes ages to just to "Process documents fro data"-> tokenize...is there a faster way? "non-letter" was more or less instantly done