Class DatasetExplorer

java.lang.Object
org.tribuo.data.DatasetExplorer
All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.command.CommandGroup

public final class DatasetExplorer extends Object implements com.oracle.labs.mlrg.olcut.command.CommandGroup
A CLI for exploring a serialised Dataset.
  • Field Details

    • shell

      protected com.oracle.labs.mlrg.olcut.command.CommandInterpreter shell
  • Constructor Details

    • DatasetExplorer

      public DatasetExplorer()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface com.oracle.labs.mlrg.olcut.command.CommandGroup
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface com.oracle.labs.mlrg.olcut.command.CommandGroup
    • fileCompleter

      public org.jline.reader.Completer[] fileCompleter()
    • startShell

      public void startShell()
      Start the command shell
    • loadDataset

      @Command(usage="<filename> - Load a dataset from disk.", completers="fileCompleter") public String loadDataset(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, File path)
    • featureInfo

      @Command(usage="Shows the information on a particular feature") public String featureInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String featureName)
    • outputInfo

      @Command(usage="Shows the output information.") public String outputInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
    • numExamples

      @Command(usage="Shows the number of rows in the dataset") public String numExamples(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
    • numFeatures

      @Command(usage="Shows the number of features in the dataset") public String numFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
    • minCount

      @Command(usage="<min count> - Shows the number of features that occurred more than min count times.") public String minCount(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int minCount)
    • showLabelStats

      @Command(usage="Shows the output statistics") public String showLabelStats(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
    • saveCSV

      @Command(usage="Saves out the data as a CSV.") public String saveCSV(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String path)
    • showProvenance

      @Command(usage="Shows the dataset provenance") public String showProvenance(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci)
    • main

      public static void main(String[] args)