Documentation of 'smile.validation.LOOCV' Java class
LOOCV
smile.validation

Class LOOCV



  • public class LOOCV
    extends java.lang.Object
    Leave-one-out cross validation. LOOCV uses a single observation from the original sample as the validation data, and the remaining observations as the training data. This is repeated such that each observation in the sample is used once as the validation data. This is the same as a K-fold cross-validation with K being equal to the number of observations in the original sample. Leave-one-out cross-validation is usually very expensive from a computational point of view because of the large number of times the training process is repeated.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      int[] test
      The index of testing instances.
      int[][] train
      The index of training instances.
    • Constructor Summary

      Constructors 
      Constructor and Description
      LOOCV(int n)
      Constructor.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • train

        public final int[][] train
        The index of training instances.
      • test

        public final int[] test
        The index of testing instances.
    • Constructor Detail

      • LOOCV

        public LOOCV(int n)
        Constructor.
        Parameters:
        n - the number of samples.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.