Commit af4faf63 authored by lafabregue's avatar lafabregue

add LICENCE file

parent 075821b4
File deleted
This diff is collapsed.
...@@ -94,36 +94,36 @@ public class TestA2CNES { ...@@ -94,36 +94,36 @@ public class TestA2CNES {
final Vector<Thread> threadList = new Vector<Thread>(); final Vector<Thread> threadList = new Vector<Thread>();
// <<<< START FOR PARAM config // <<<< START FOR PARAM config
for (int i = 0 ; i < 10 ; i++) { // for (int i = 0 ; i < 10 ; i++) {
final HybridClassification classif = (HybridClassification) classification.clone(); // final HybridClassification classif = (HybridClassification) classification.clone();
Data currentData = (Data) dataTest.clone(); // Data currentData = (Data) dataTest.clone();
final String path_to_add = resultPath + datasetName + "/"; // final String path_to_add = resultPath + datasetName + "/";
classif.setName(datasetName+"_unconstrained"+"-"+i+ // classif.setName(datasetName+"_unconstrained"+"-"+i+
".clustering"); // ".clustering");
classif.setData(currentData); // classif.setData(currentData);
//
for (int a : ag_seeds) { // for (int a : ag_seeds) {
classif.addAgent(new ParametersKmeans(a, nb_iter, distanceModel, // classif.addAgent(new ParametersKmeans(a, nb_iter, distanceModel,
distanceParameters, averageParameters), currentData); // distanceParameters, averageParameters), currentData);
} // }
//
// >>>> REPLACE PARAM //// >>>> REPLACE PARAM
Thread t = new Thread() { // Thread t = new Thread() {
@Override // @Override
public void run() { // public void run() {
classif.classify(); // classif.classify();
System.out.println(classif.getName()); // System.out.println(classif.getName());
try { // try {
new CSVResultWriter(classif, path_to_add + classif.getName()).write(); // new CSVResultWriter(classif, path_to_add + classif.getName()).write();
} catch (IOException e) { // } catch (IOException e) {
e.printStackTrace(); // e.printStackTrace();
} // }
} // }
}; // };
t.start(); // t.start();
//
threadList.add(t); // threadList.add(t);
} // }
//// <<<< CONSTRAINTS //// <<<< CONSTRAINTS
try (DirectoryStream<Path> dirStream = Files.newDirectoryStream( try (DirectoryStream<Path> dirStream = Files.newDirectoryStream(
Paths.get(dataPath+datasetName+"/test/"), "*.constraints")) { Paths.get(dataPath+datasetName+"/test/"), "*.constraints")) {
...@@ -162,7 +162,7 @@ public class TestA2CNES { ...@@ -162,7 +162,7 @@ public class TestA2CNES {
e.printStackTrace(); e.printStackTrace();
} }
for(int i = 0 ; i < 1; i++) { for(int i = 0 ; i < 2; i++) {
final HybridClassification classif = (HybridClassification) classification.clone(); final HybridClassification classif = (HybridClassification) classification.clone();
Data currentData = (Data) dataTest.clone(); Data currentData = (Data) dataTest.clone();
currentData.updateAndSetConstraintsToSample(constraints); currentData.updateAndSetConstraintsToSample(constraints);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment