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
ID column in K-means clustering
Hello,
I am doing a text clustering on text by using K-means and the output goes to an Excel file.
All is working fine, but I can't seem to the original ID column into the new spreadsheet?
Instead a new column is created with ascending numbers.
This ID column: Original example set Into this column:
This is my workflow:
Tagged:
0
Best Answer
-
molsen Member Posts: 6 Contributor II
I found a way to pass on the ID column on from the "Process Documents from Data" operator to the "K-means clustering" operator.
It turned out that the only thing I had missed was a small checkmark called "Add meta information":
After that I got the ID data all the way through to the Excel fil at the end!
1
Answers
Use a Set Role operator to set your ID column to the ID role. Then it should pass through to the clusters.
Thank you for the reply, like this?
Because it seems like the Id gets lost in the Process Documents, anything I have to do there?
Double check your process, I'm able to pass an attribute that's set with an ID role through Process Documents from Data.
Which comes from this sumple Search Twitter Process.
Danm, I'm not able to make it work Mr. T-Bone!
Can you share your workflow?
Or do you know of a guide that shows how to pass the ID through?
I have made mine based on this tutorial:
k-means clustering tutorial