Enum Class EMeans.BatchLaw

java.lang.Object
java.lang.Enum<EMeans.BatchLaw>
smile.clustering.EMeans.BatchLaw
All Implemented Interfaces:
Serializable, Comparable<EMeans.BatchLaw>, Constable
Enclosing class:
EMeans

public static enum EMeans.BatchLaw extends Enum<EMeans.BatchLaw>
Scaling law mode for selecting the mini-batch size B.
  • Enum Constant Details

    • AUTO

      public static final EMeans.BatchLaw AUTO
      Automatically selects QUALITY when d <= 16 and THROUGHPUT when d > 16.
    • THROUGHPUT

      public static final EMeans.BatchLaw THROUGHPUT
      Throughput-optimized batch law: B = 0.035134 * k^0.134749 * n^0.876473 * T^0.813344, rounded to the nearest power of two.
    • QUALITY

      public static final EMeans.BatchLaw QUALITY
      Quality-optimized batch law (batches ~8x smaller than throughput): B = 0.00439175 * k^0.134749 * n^0.876473 * T^0.813344, rounded to the nearest power of two.
  • Method Details

    • values

      public static EMeans.BatchLaw[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EMeans.BatchLaw valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null