Package etc.aloe.processes

Examples of etc.aloe.processes.CrossValidationSplit


        List<TestLabelable> expectedTraining = new ArrayList<TestLabelable>();
        expectedTraining.addAll(originalItems.subList(0, 4));
        expectedTraining.addAll(originalItems.subList(8, 12));

        CrossValidationSplit instance = new CrossValidationSplit();
        List<TestLabelable> training = instance.getTrainingForFold(originalItems, foldIndex, numFolds);

        assertArrayEquals("Correct training set for middle fold", expectedTraining.toArray(), training.toArray());
    }
View Full Code Here


        int foldIndex = 1;

        List<TestLabelable> expectedTesting = new ArrayList<TestLabelable>();
        expectedTesting.addAll(originalItems.subList(4, 8));

        CrossValidationSplit instance = new CrossValidationSplit();

        List<TestLabelable> testing = instance.getTestingForFold(originalItems, foldIndex, numFolds);

        assertArrayEquals("Correct test set for middle fold", expectedTesting.toArray(), testing.toArray());
    }
View Full Code Here

        int foldIndex = 0;

        List<TestLabelable> expectedTraining = new ArrayList<TestLabelable>();
        expectedTraining.addAll(originalItems.subList(4, 12));

        CrossValidationSplit instance = new CrossValidationSplit();
        List<TestLabelable> training = instance.getTrainingForFold(originalItems, foldIndex, numFolds);

        assertArrayEquals("Correct training set for first fold", expectedTraining.toArray(), training.toArray());
    }
View Full Code Here

        int foldIndex = 0;

        List<TestLabelable> expectedTesting = new ArrayList<TestLabelable>();
        expectedTesting.addAll(originalItems.subList(0, 4));

        CrossValidationSplit instance = new CrossValidationSplit();

        List<TestLabelable> testing = instance.getTestingForFold(originalItems, foldIndex, numFolds);

        assertArrayEquals("Correct test set for first fold", expectedTesting.toArray(), testing.toArray());
    }
View Full Code Here

        int foldIndex = 2;

        List<TestLabelable> expectedTraining = new ArrayList<TestLabelable>();
        expectedTraining.addAll(originalItems.subList(0, 8));

        CrossValidationSplit instance = new CrossValidationSplit();
        List<TestLabelable> training = instance.getTrainingForFold(originalItems, foldIndex, numFolds);

        assertArrayEquals("Correct training set for last fold", expectedTraining.toArray(), training.toArray());
    }
View Full Code Here

        int foldIndex = 2;

        List<TestLabelable> expectedTesting = new ArrayList<TestLabelable>();
        expectedTesting.addAll(originalItems.subList(8, 12));

        CrossValidationSplit instance = new CrossValidationSplit();

        List<TestLabelable> testing = instance.getTestingForFold(originalItems, foldIndex, numFolds);

        assertArrayEquals("Correct test set for last fold", expectedTesting.toArray(), testing.toArray());
    }
View Full Code Here

TOP

Related Classes of etc.aloe.processes.CrossValidationSplit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.