public double[] ShapeClassification()
        {
            //Get single Test Instance from CSV file
            CSVLoader loader = new CSVLoader();

            loader.setSource(new java.io.File("GetOrientation.csv"));
            Instances testinstances = loader.getDataSet();

            testinstances.setClassIndex(testinstances.numAttributes() - 1);
            Instance sekarang = testinstances.lastInstance();

            //Get and build saved model
            LibSVM modelShape = new LibSVM();
            LibSVM modelOri   = new LibSVM();

            modelOri   = (LibSVM)SerializationHelper.read("OrientationModel.model");
            modelShape = (LibSVM)SerializationHelper.read("ShapeModel.model");

            //Classify actual test instance
            double valueShape = modelShape.classifyInstance(sekarang);
            double valueOri   = modelOri.classifyInstance(sekarang);

            Console.WriteLine(valueOri);
            Console.WriteLine(valueShape);
            double[] value = new double[] { valueShape, valueOri };

            return(value);
        }
        public double MarginClassification()
        {
            //Get single Test Instance from CSV file
            CSVLoader loader = new CSVLoader();

            loader.setSource(new java.io.File("GetMargin.csv"));
            Instances testinstances = loader.getDataSet();

            testinstances.setClassIndex(testinstances.numAttributes() - 1);
            Instance sekarang = testinstances.lastInstance();

            //Get and build saved model
            LibSVM svm = new LibSVM();

            svm = (LibSVM)SerializationHelper.read("MarginModel.model");

            //Classify actual test instance
            double clsValue = svm.classifyInstance(sekarang);

            Console.WriteLine(clsValue);

            return(clsValue);
        }