JeffBorwey / GraphClustering

GraphClustering is a C# GUI for data mining and clustering research. In particular, this implements the graph based resilience measure Vertex Attack Tolerance (VAT) and the adapted clustering algorithm Hierarchical VAT Clustering (hVATClust). The NetMining library provides many other common clustering algorithms (K-Means, SOM, Girvan-Newman, etc.), Several ADTs (Quadtree, Heap, DisjointSet), Dimensionality Reduction, Data Generation, and Internal(Dunn, Silhouette, Davies–Bouldin) and External Clustering evaluation.
MIT License
3 stars 5 forks source link

cluster file format #3

Closed taba1345 closed 6 years ago

taba1345 commented 6 years ago

for using cluster validity (internal or external Eval.) the grapphclustering needs a file with *.cluster format. what is the format of this file? how can we make it?

with regards Tabatabaei

JeffBorwey commented 6 years ago

Here is an example clustering of the iris data set

There are 3 sections in a .cluster file Points (absolute or relative path to points file)

Clusters (number of clusters) (length of cluster) (space seperated index list of each cluster item) ... (length of cluster) (space seperated index list of each cluster item)

Meta (any data or comments you want to store along with the cluster file)

Here is an example:

Points iris.txt
Clusters 3
50
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 
46
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 71 73 74 75 76 77 78 79 80 81 82 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 106 
54
68 70 72 83 87 100 101 102 103 104 105 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 
Meta HVatClust
All calculated VATs:
0.0196078431372549 
Vat: MinVat=0.0196078431372549
Removed Count:1
98
All calculated VATs:
0.1875 0.0652173913043478 
Vat: MinVat=0.0652173913043478
Removed Count:3
70,77,87