Class LeaveOneOut

  • All Implemented Interfaces:
    Holdout

    public class LeaveOneOut
    extends AbstractHoldout
    A leave-one-out-holdout is to provide a set of partitions of a database where each instances once hold out as a test instance while the respectively remaining instances are training instances.
    Since:
    0.7.0
    Author:
    Arthur Zimek
    • Field Detail

      • len

        private int len
        Size of the data set.
      • pos

        private int pos
        Size of the data set.
    • Constructor Detail

      • LeaveOneOut

        public LeaveOneOut()
        Constructor.
    • Method Detail

      • numberOfPartitions

        public int numberOfPartitions()
        Description copied from interface: Holdout
        How many partitions to test.
        Returns:
        Number of partitions.
      • nextPartitioning

        public TrainingAndTestSet nextPartitioning()
        Description copied from interface: Holdout
        Get the next partitioning of the given holdout.
        Returns:
        Next partitioning of the data set