Package org.tribuo.util
Class HTMLOutput
java.lang.Object
org.tribuo.util.HTMLOutput
Utilities for nice HTML output that can be put in wikis and such.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static String
Formats a pair as a HTML table entry.
-
Method Details
-
toHTML
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.
-