Class HTMLOutput

java.lang.Object
org.tribuo.util.HTMLOutput

public final class HTMLOutput extends Object
Utilities for nice HTML output that can be put in wikis and such.
  • Method Details

    • toHTML

      public static String toHTML(com.oracle.labs.mlrg.olcut.util.Pair<String,Double> p)
      Formats a pair as a HTML table entry.
      Parameters:
      p - The pair to format.
      Returns:
      A string containing the HTML representation of the input.
    • printFeatureMap

      public static void printFeatureMap(Map<String,List<com.oracle.labs.mlrg.olcut.util.Pair<String,Double>>> m, List<String> keys, PrintStream s)
      Formats a feature ranking as a HTML table.
      Parameters:
      m - The ranking to format.
      keys - The classes to format.
      s - The stream to write to.