Class BagSelection

java.lang.Object
si.ijs.kt.clus.selection.ClusSelection
si.ijs.kt.clus.selection.BagSelection
Direct Known Subclasses:
BagSelectionSemiSupervised

public class BagSelection extends ClusSelection
  • Field Details

    • m_Counts

      protected int[] m_Counts
    • m_NbSel

      protected int m_NbSel
  • Constructor Details

    • BagSelection

      public BagSelection(int nbrows)
      Creates a new bag selection of size nbrows from a total of nbrows instances. This constructor does NOT take in to account the BagSize setting users can set in the settings file. If you want to take this in to account, you should use BagSelection(nbrows, getSettings().getEnsembleBagSize()) instead.
      Parameters:
      nbrows - the number of instances
    • BagSelection

      public BagSelection(int nbrows, int nbselected, ClusRandomNonstatic rnd)
      Create a new bag of size nbselected from a total of nbrows instances. If nbselected == 0, a bag of size nbrows is created.
      Parameters:
      nbrows - the total number of instances
      nbselected - the size of the bagging selection
      rnd - random generator object that is used for creating the bag. May be null. In that case, ClusRandom is used instead, which might result in non-reproducibility if the number of cores is greater than one.
  • Method Details