Interface IStratifier

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int createStrati​(org.api4.java.ai.ml.core.dataset.IDataset<?> dataset)
      Prepares the stratification technique but does not assign instances to strati.
      int getStratum​(org.api4.java.ai.ml.core.dataset.IInstance instance)
      Determines to which stratum this instance belongs
      • Methods inherited from interface org.api4.java.common.control.IParallelizable

        getNumCPUs, setNumCPUs
    • Method Detail

      • createStrati

        int createStrati​(org.api4.java.ai.ml.core.dataset.IDataset<?> dataset)
        Prepares the stratification technique but does not assign instances to strati.
        Parameters:
        dataset -
        Returns:
        The number of strati for the given dataset
      • getStratum

        int getStratum​(org.api4.java.ai.ml.core.dataset.IInstance instance)
        Determines to which stratum this instance belongs
        Parameters:
        instance -
        Returns:
        id of stratum