All Implemented Interfaces:
Serializable, OptionHandler

public class CSV extends AbstractOutput
Outputs the predictions as CSV.

Valid options are:

 -p <range>
  The range of attributes to print in addition to the classification.
  (default: none)
  Whether to turn on the output of the class distribution.
  Only for nominal class attributes.
  (default: off)
 -decimals <num>
  The number of digits after the decimal point.
  (default: 3)
 -file <path>
  The file to store the output in, instead of outputting it on stdout.
  Gets ignored if the supplied path is a directory.
  (default: .)
  In case the data gets stored in a file, then this flag can be used
  to suppress the regular output.
  (default: not suppressed)
  Whether to use TAB as separator instead of comma.
  (default: comma)
$Revision: 10169 $
fracpete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • CSV

      public CSV()
  • Method Details

    • globalInfo

      public String globalInfo()
      Returns a string describing the output generator.
      Specified by:
      globalInfo in class AbstractOutput
      a description suitable for displaying in the GUI
    • getDisplay

      public String getDisplay()
      Returns a short display text, to be used in comboboxes.
      Specified by:
      getDisplay in class AbstractOutput
      a short display text
    • listOptions

      public Enumeration<Option> listOptions()
      Returns an enumeration of all the available options..
      Specified by:
      listOptions in interface OptionHandler
      listOptions in class AbstractOutput
      an enumeration of all available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      Sets the OptionHandler's options using the given list. All options will be set (or reset) during this call (i.e. incremental setting of options is not possible).
      Specified by:
      setOptions in interface OptionHandler
      setOptions in class AbstractOutput
      options - the list of options as an array of strings
      Exception - if an option is not supported
    • getOptions

      public String[] getOptions()
      Gets the current option settings for the OptionHandler.
      Specified by:
      getOptions in interface OptionHandler
      getOptions in class AbstractOutput
      the list of current option settings as an array of strings
    • setUseTab

      public void setUseTab(boolean value)
      Sets whether to use tab instead of comma as separator.
      value - true if tab is to be used
    • getUseTab

      public boolean getUseTab()
      Returns whether tab is used as separator.
      true if tab is used instead of comma
    • useTabTipText

      public String useTabTipText()
      Returns the tip text for this property.
      tip text for this property suitable for displaying in the GUI