Class TestSplit

  • java.lang.Object
    • tests.testSplit.TestSplit

  • public class TestSplit
    extends java.lang.Object
    Test of the split function of the MoreDatasetTools class
    • Constructor Summary

      Constructors 
      Constructor Description
      TestSplit()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Test of the split function of the MoreDatasetTools class.
      • Methods inherited from class java.lang.Object

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

      • TestSplit

        public TestSplit()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Test of the split function of the MoreDatasetTools class. Split a dataset into training and test and use KNN as classifier

        Expected args:

        1. dataset: Path to the dataset (string)
        2. class-index: Index of the class column (int, >= 0)
        Parameters:
        args - Command line arguments
        Throws:
        java.lang.Exception