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
"SOM clustering: Conversion of non-numeric attributes to numeric?"
As you might have seen in my other posts, I'm trying to perform Clustering of the data using SOM method. I'm able to generate the Clusters. But, I assume that to create meaningful clustering, I'll have to convert all the non-numerical attributes (categorical, timestamp) to the numeric attributes without affecting the meaning of those attributes while deciding the cluster. Is my understanding correct? What is the support from Rapidminer for doing that?
What are the operators I have to use, to achieve that?
What are the operators I have to use, to achieve that?
Tagged:
0
Answers
e.g.
bad=0, good=1, excellent=2
or
bad=1, good=2, excellent=3
or
bad=0.5, good=1, excellent=2
This is because I could find some articles in the web which suggest that SOM takes care of it (unlike K-means). Here is a sample link:
http://www.roselladb.com/segmentation-clustering.htm
Can anybody shed light on this?
in fact this SOM implementation does not make differences between any valuetype. Instead it assumes, that everything is numerical, which will give you strange results, if you have nominal values. To be precise: Nominal values are replaced by its internal id, which is just a counter...
But you might transform these nominal values into binominal ones, where each value is represented by a binominal, true or false, attribute.
The operator is called "Nominal2Binominal".
If a given implementation takes care of making nominal values binominal, depends just on the programmers will and has nothing to do with the actual algorithm. A Kmeans calculation could easily transform it beforehand, too. But your link is right, when it states, that KMeans will suffer from the great number of attributes, because calculating the distances will become more expensive. Then KMedoids is a good replacement, because it is able to make this transformation implicitly by using a different distance measure. The only disadvantage is, that it always has to use an example as centroid. But with a growing number of examples, this converges to the KMeans solution...
If you don't want to convert every nominal attribute into binominals, because there is an ordinal information available, you could transform it into user defined numerical variable with the combination of two operators. Here's how it works: Greetings,
Sebastian
The Table I have is bigger and also it contains some columns with lot of nominal values. Due to this, the Nominal2Binominal is consuming lot of time (even more than 30 mins). So, I decided to perform some mapping wherever possible. The following queries are related to that:
1)
One of the columns in a table, takes one of the following 3 values:
- first
- second
- NULL
I can map 'first' to 1 and 'second' to 2. It makes sense for my application, not to map 'NULL' to '0'. Because practically this column can take only 'first' or 'second'. The presence of 'NULL' indicates that the value is unknown. Hence, I do not want to map NULL to '0', as otherwise it might lead to wrong formation of clusters.
Now, my question is whether the SOM algorithm really understands this, if I just leave it to NULL. As I'm aware, the neural networks based SOM algorithm should work well in cases where the data contains some noise also.
Please comment on this.
2)
There are some columns of type 'TIMESTAMP'/DateTime. Do I have to do any conversion for such columns?
I assume it is not required.