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
[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