Class Bag

java.lang.Object
smile.validation.Bag
All Implemented Interfaces:
Serializable

public class Bag extends Object implements Serializable
A bag of random selected samples.
See Also:
  • Field Details

    • samples

      public final int[] samples
      The random samples.
    • oob

      public final int[] oob
      The index of testing instances.
  • Constructor Details

    • Bag

      public Bag(int[] samples, int[] oob)
      Constructor.
      Parameters:
      samples - the random samples.
      oob - the out of bag samples.