Commit 4eb3ce71 authored by Antoine RICHARD's avatar Antoine RICHARD
Browse files

no load xml anymore (cause error)

parent 8b7e4eb9
......@@ -72,30 +72,36 @@ public class App
catch(Exception e){
LOG.error(e);
}
// Set datasets to use
HashMap<String, MultiLabelInstances> datasets = new HashMap<>();
String[] dataset_names = {
"emotions", // 72 numerical attributes and 6 labels
"CAL500", // 68 numerical attributes and 174 labels
datasets.put("emotions", new MultiLabelInstances("../data/emotions.arff", 6)); // 72 numerical attributes and 6 labels
/*
String[][] dataset_names = {
{"emotions", 6},// 72 numerical attributes and 6 labels
//"CAL500", // 68 numerical attributes and 174 labels
//"scene", // 294 numerical attributes and 6 labels
"genbase", // 1186 nominal attributes and 27 labels
//"genbase", // 1186 nominal attributes and 27 labels
//"bibtex", // 1836 nominal attributes and 159 labels
"birds", // 2 nominal and 258 numerical attributes and 19 labels
//"birds", // 2 nominal and 258 numerical attributes and 19 labels
//"medical", // 1449 nominal attributes and 45 labels
"flags", // 9 nominal and 10 numeric attributes and 7 labels
//"flags", // 9 nominal and 10 numeric attributes and 7 labels
// "consultations" // 2 nominal and 2 numeric attributes and 15 labels
};
for(String dataset_name : dataset_names){
for(String[] dataset_name : dataset_names){
datasets.put(
dataset_name,
dataset_name[0],
new MultiLabelInstances(
"../data/"+dataset_name+".arff",
"../data/"+dataset_name+".xml"
"../data/"+dataset_name[0]+".arff",
dataset_name[1]
)
);
}
*/
// Setup output
......@@ -110,7 +116,7 @@ public class App
};
// Init ouput file
File f = new File(outFilename);
if(!f.exists())
......@@ -127,7 +133,7 @@ public class App
;
output += "\n";
PrintWriter writer = new PrintWriter(f.getPath(), "UTF-8");
PrintWriter writer = new PrintWriter(f.getPath(), "UTF-8");
writer.print(output);
writer.flush();
output = "";
......
......@@ -5,7 +5,7 @@
</Properties>
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} %highlight{%-5level %logger{36}.%M() @%L - %msg%n}{FATAL=red bold, ERROR=red, WARN=yellow, INFO=black, DEBUG=blue, TRACE=gray}" disableAnsi="false"/>
<PatternLayout pattern="%d{HH:mm:ss.SSS} %highlight{%-5level %logger{36}.%M() @%L - %msg%n}{FATAL=red bold, ERROR=red, WARN=yellow, INFO=white, DEBUG=blue, TRACE=gray}" disableAnsi="false"/>
</Console>
</Appenders>
<Loggers>
......
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://mulan.sourceforge.net/labels"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://mulan.sourceforge.net/labels">
<xs:element name="labels" type="labelsRootType">
<xs:unique name="labelName">
<xs:selector xpath=".//label" />
<xs:field xpath="@name"></xs:field>
</xs:unique>
</xs:element>
<xs:element name="label" type="labelType" />
<xs:complexType name="labelsRootType">
<xs:sequence>
<xs:element ref="label" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="labelType">
<xs:sequence>
<xs:element ref="label" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required" />
</xs:complexType>
</xs:schema>
\ No newline at end of file
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