public interface IStratiAssigner<I,D extends IDataset<I>>
| Modifier and Type | Method and Description |
|---|---|
int |
assignToStrati(I datapoint)
Custom logic for assigning datapoints into strati.
|
int |
getNumCPUs() |
void |
init(D dataset,
int stratiAmount)
Initialize custom assigner if necessary.
|
void |
setNumCPUs(int numberOfCPUs)
Sets the number of CPU cores that can be used for parallel computation
|
void init(D dataset, int stratiAmount)
dataset - The dataset the datapoints will be sampled from.stratiAmount - The predetermined amount of strati the dataset will be stratified into.int assignToStrati(I datapoint)
datapoint - The datapoint that has to be assigned.void setNumCPUs(int numberOfCPUs)
numberOfCPUs - int getNumCPUs()