public static void main(String args[]) { ProblemTransformationMethod.evaluation(new CT(), args); } }
@Override public Enumeration listOptions() { Vector result = new Vector(); result.addElement(new Option("\t"+widthTipText(), "H", 1, "-H <value>")); result.addElement(new Option("\t"+densityTipText(), "L", 1, "-L <value>")); result.addElement(new Option("\t"+dependencyMetricTipText(), "X", 1, "-X <value>")); OptionUtils.add(result, super.listOptions()); return OptionUtils.toEnumeration(result); }
m_R = new Random(getSeed()); int width = m_Width; if (getDebug()) System.out.println("Setting width to "+width); if (getDebug()) System.out.println("Setting width to "+width); if (getDebug()) System.out.println("Make Trellis"); prepareChain(L); int indices[] = retrieveChain(); if (getDebug()) System.out.println("Got "+m_DependencyMetric+"-type Matrix in "+((System.currentTimeMillis() - start)/1000.0)+"s"); trel = orderTrellis(trel,I,m_R); if (getDebug()) System.out.println("\nTrellis built in: "+info+"s"); if (getDebug()) System.out.println("Build Trellis"); if (getDebug()) { System.out.print(" -> "+jv); if (getDebug()) System.out.println();
@Override public String [] getOptions() { List<String> result = new ArrayList<>(); OptionUtils.add(result, 'H', getWidth()); OptionUtils.add(result, 'L', getDensity()); OptionUtils.add(result, 'X', getDependencyMetric()); OptionUtils.add(result, super.getOptions()); return OptionUtils.toArray(result); }
@Override public TechnicalInformation getTechnicalInformation() { TechnicalInformation result; result = new TechnicalInformation(Type.ARTICLE); result.setValue(Field.AUTHOR, "Yuhong Guoand and Suicheng Gu"); result.setValue(Field.TITLE, "Multi-Label Classification Using Conditional Dependency Networks"); result.setValue(Field.BOOKTITLE, "IJCAI '11"); result.setValue(Field.YEAR, "2011"); result.add(new CT().getTechnicalInformation()); return result; }
trel = CT.orderTrellis(trel,StatUtils.margDepMatrix(D,m_DependencyMetric),m_R);
@Override public String [] getOptions() { List<String> result = new ArrayList<>(); OptionUtils.add(result, 'H', getWidth()); OptionUtils.add(result, 'L', getDensity()); OptionUtils.add(result, 'X', getDependencyMetric()); OptionUtils.add(result, super.getOptions()); return OptionUtils.toArray(result); }
@Override public TechnicalInformation getTechnicalInformation() { TechnicalInformation result; result = new TechnicalInformation(Type.ARTICLE); result.setValue(Field.AUTHOR, "Yuhong Guoand and Suicheng Gu"); result.setValue(Field.TITLE, "Multi-Label Classification Using Conditional Dependency Networks"); result.setValue(Field.BOOKTITLE, "IJCAI '11"); result.setValue(Field.YEAR, "2011"); result.add(new CT().getTechnicalInformation()); return result; }
trel = CT.orderTrellis(trel,StatUtils.margDepMatrix(D,m_DependencyMetric),m_R);
m_R = new Random(getSeed()); int width = m_Width; if (getDebug()) System.out.println("Setting width to "+width); if (getDebug()) System.out.println("Setting width to "+width); if (getDebug()) System.out.println("Make Trellis"); prepareChain(L); int indices[] = retrieveChain(); if (getDebug()) System.out.println("Got "+m_DependencyMetric+"-type Matrix in "+((System.currentTimeMillis() - start)/1000.0)+"s"); trel = orderTrellis(trel,I,m_R); if (getDebug()) System.out.println("\nTrellis built in: "+info+"s"); if (getDebug()) System.out.println("Build Trellis"); if (getDebug()) { System.out.print(" -> "+jv); if (getDebug()) System.out.println();
@Override public Enumeration listOptions() { Vector result = new Vector(); result.addElement(new Option("\t"+widthTipText(), "H", 1, "-H <value>")); result.addElement(new Option("\t"+densityTipText(), "L", 1, "-L <value>")); result.addElement(new Option("\t"+dependencyMetricTipText(), "X", 1, "-X <value>")); OptionUtils.add(result, super.listOptions()); return OptionUtils.toEnumeration(result); }
public static void main(String args[]) { ProblemTransformationMethod.evaluation(new CT(), args); } }