Class ClusterStratiAssigner<I extends INumericArrayInstance,​D extends IDataset<I>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> clusters  
      protected org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeasure  
      protected int randomSeed  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int assignToStrati​(I datapoint)
      Custom logic for assigning datapoints into strati.
      int getNumCPUs()  
      void setNumCPUs​(int numberOfCPUs)
      Sets the number of CPU cores that can be used for parallel computation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ai.libs.jaicore.ml.core.dataset.sampling.inmemory.stratified.sampling.IStratiAssigner

        init
    • Field Detail

      • randomSeed

        protected int randomSeed
      • distanceMeasure

        protected org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeasure
      • clusters

        protected java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I extends INumericArrayInstance>> clusters
    • Constructor Detail

      • ClusterStratiAssigner

        public ClusterStratiAssigner()