- Java version: 1.8.0
- cnae (example)
- skin
- covertype
To execute the algorithm:
-
Compile the Java class
javac addConstraints/OutPut.java -
Run the program
java addConstraints.OutPut
Note: The algorithm’s clustering parameters (e.g. number of clusters, constraint ratios, repetition ratios) are currently hard-coded in
OutPut.java. You can modify those settings directly in the source before recompiling if you need to change the configuration.
// Example snippet from OutPut.java showing the settings
int[] k_vary = {10}; //number of clusters
double[] c = {0.1}; //constraint ratios
double[] c1 = {0.0}; //repetition ratiosThe final results will be saved in /Results/cnae/.
- Measure the clustering cost and runtime of the constrained clustering problem.