Packages

object Classifier

The Classifier object provides methods for paritioning the downsampling the the dataset.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Classifier
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def downsample(y: VectoI, ns: Int): Array[Int]

    Downsample to reduce imbalance of classes, by returning the group indices and the probability for each group.

    Downsample to reduce imbalance of classes, by returning the group indices and the probability for each group.

    y

    the classification/response vector

    ns

    the number of instances in downsample

  2. def partition(y: VectoI): (Array[Set[Int]], VectoI)

    Partition the dataset into groups, e.g., to set up for downsampling, by returning each group's indices and frequency counts.

    Partition the dataset into groups, e.g., to set up for downsampling, by returning each group's indices and frequency counts. Instances with the same classification 'y(i)' will be found in the 'i'th group.

    y

    the classification/response vector