public interface IStratiAssigner<I extends IInstance>
| Modifier and Type | Method and Description |
|---|---|
int |
assignToStrati(IInstance datapoint)
Custom logic for assigning datapoints into strati.
|
int |
getNumCPUs() |
void |
init(IDataset<I> 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(IDataset<I> 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(IInstance datapoint)
datapoint - The datapoint that has to be assigned.void setNumCPUs(int numberOfCPUs)
numberOfCPUs - int getNumCPUs()