Class TestNaiveBayes

  • java.lang.Object
    • tests.testNaiveBayes.TestNaiveBayes

  • public class TestNaiveBayes
    extends java.lang.Object
    Test Naive Bayes as a wrapper classifier
    • Constructor Summary

      Constructors 
      Constructor Description
      TestNaiveBayes()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Test Naive Bayes as a wrapper classifier
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestNaiveBayes

        public TestNaiveBayes()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Test Naive Bayes as a wrapper classifier

        Expected args:

        1. training: Path to the training dataset (string)
        2. test: Path to the test dataset (string)
        3. class-index: Index of the class column (int, >= 0)
        4. feats: list of selected features (sequence of int)
        Parameters:
        args - Command line arguments