Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
[SOLVED] classification of the values of the cluster attribute
Hi ,
I used this code to know for each data belongs to which cluster.
Best regards.
I used this code to know for each data belongs to which cluster.
it gave me the results as follows:
for (Example example : resultSet){
Attribute clusterAttribute = resultSet.getAttributes().getCluster();
double value = resultSet.getAttributes().getCluster().getValue(example.getDataRow());
System.out.println(value)
index corresponds to which cluster the data belongs in this rang. I am looking for the existance for other better solutions. what worries me is that I do not know at earlier classification of clusters. For example : the value of cluster attribute in my process is :
0.0 => i.e the data in this row belong to cluster_6 (see code below)
1.0 => i.e the data in this row belong to cluster_1
0.0
2.0 => i.e the data in this row belong to cluster_0
3.0
4.0
4.0
...
values = [cluster_6, cluster_1, cluster_0, cluster_4, cluster_2, cluster_3, cluster_5]I want it to be ordered by starting with the cluster_0 until to cluster_6. Hence the index 0.0 indicates cluster_0.
Best regards.
Tagged:
0
Answers