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

Class Bootstrap



  • public class Bootstrap
    extends java.lang.Object
    The bootstrap is a general tool for assessing statistical accuracy. The basic idea is to randomly draw datasets with replacement from the training data, each samples the same size as the original training set. This is done many times (say k = 100), producing k bootstrap datasets. Then we refit the model to each of the bootstrap datasets and examine the behavior of the fits over the k replications.
    • Field Summary

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

      Constructors 
      Constructor and Description
      Bootstrap(int n, int k)
      Constructor.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • k

        public final int k
        The number of rounds of cross validation.
      • train

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

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

      • Bootstrap

        public Bootstrap(int n,
                         int k)
        Constructor.
        Parameters:
        n - the number of samples.
        k - the number of rounds of bootstrap.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.