object Classifier
The Classifier
object provides methods for paritioning the downsampling the
the dataset.
- Alphabetic
- By Inheritance
- Classifier
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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
-
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