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 {
final Vector<Thread> threadList = new Vector<Thread>();
// <<<< START FOR PARAM config
for (int i = 0 ; i < 10 ; i++) {
final HybridClassification classif = (HybridClassification) classification.clone();
Data currentData = (Data) dataTest.clone();
final String path_to_add = resultPath + datasetName + "/";
classif.setName(datasetName+"_unconstrained"+"-"+i+
".clustering");
classif.setData(currentData);
for (int a : ag_seeds) {
classif.addAgent(new ParametersKmeans(a, nb_iter, distanceModel,
distanceParameters, averageParameters), currentData);
}
// >>>> REPLACE PARAM
Thread t = new Thread() {
@Override
public void run() {
classif.classify();
System.out.println(classif.getName());
try {
new CSVResultWriter(classif, path_to_add + classif.getName()).write();
} catch (IOException e) {
e.printStackTrace();
}
}
};
t.start();
threadList.add(t);
}
// for (int i = 0 ; i < 10 ; i++) {
// final HybridClassification classif = (HybridClassification) classification.clone();
// Data currentData = (Data) dataTest.clone();
// final String path_to_add = resultPath + datasetName + "/";
// classif.setName(datasetName+"_unconstrained"+"-"+i+
// ".clustering");
// classif.setData(currentData);
//
// for (int a : ag_seeds) {
// classif.addAgent(new ParametersKmeans(a, nb_iter, distanceModel,
// distanceParameters, averageParameters), currentData);
// }
//
//// >>>> REPLACE PARAM
// Thread t = new Thread() {
// @Override
// public void run() {
// classif.classify();
// System.out.println(classif.getName());
// try {
// new CSVResultWriter(classif, path_to_add + classif.getName()).write();
// } catch (IOException e) {
// e.printStackTrace();
// }
// }
// };
// t.start();
//
// threadList.add(t);
// }
//// <<<< CONSTRAINTS
try (DirectoryStream<Path> dirStream = Files.newDirectoryStream(
Paths.get(dataPath+datasetName+"/test/"), "*.constraints")) {
......@@ -162,7 +162,7 @@ public class TestA2CNES {
e.printStackTrace();
}
for(int i = 0 ; i < 1; i++) {
for(int i = 0 ; i < 2; i++) {
final HybridClassification classif = (HybridClassification) classification.clone();
Data currentData = (Data) dataTest.clone();
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