Interface IStratiAssigner<I,​D extends IDataset<I>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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
    • Method Detail

      • init

        void init​(D dataset,
                  int stratiAmount)
        Initialize custom assigner if necessary.
        Parameters:
        dataset - The dataset the datapoints will be sampled from.
        stratiAmount - The predetermined amount of strati the dataset will be stratified into.
      • assignToStrati

        int assignToStrati​(I datapoint)
        Custom logic for assigning datapoints into strati.
        Parameters:
        datapoint - The datapoint that has to be assigned.
        Returns:
        The index of the strati the datapoint will be assigned into.
      • setNumCPUs

        void setNumCPUs​(int numberOfCPUs)
        Sets the number of CPU cores that can be used for parallel computation
        Parameters:
        numberOfCPUs -
      • getNumCPUs

        int getNumCPUs()