java.lang.Object
java.lang.Enum<BatchSizeOptimization>
de.uni_mannheim.informatik.dws.melt.matching_ml.python.nlptransformers.BatchSizeOptimization
All Implemented Interfaces:
Serializable, Comparable<BatchSizeOptimization>, java.lang.constant.Constable

public enum BatchSizeOptimization extends Enum<BatchSizeOptimization>
An enum which describes entities on how to optimize the batch size.
  • Enum Constant Details

    • USE_LONGEST_TEXTS

      public static final BatchSizeOptimization USE_LONGEST_TEXTS
      Use the longest texts in the dataset to determine the highest batch size.
    • USE_LONGEST_TEXTS_PESSIMISTIC

      public static final BatchSizeOptimization USE_LONGEST_TEXTS_PESSIMISTIC
      Use the longest texts in the dataset to determine the highest batch size but reduce the may batch size two times.
    • USE_MAX_WORDS

      public static final BatchSizeOptimization USE_MAX_WORDS
      Use the texts with the highest number of words to determine the highest batch size.
    • USE_THEORETICAL_MAX

      public static final BatchSizeOptimization USE_THEORETICAL_MAX
      Use a long lorem ipsum text to determine the highest batch size.
    • NONE

      public static final BatchSizeOptimization NONE
      No batch size optimization.
  • Constructor Details

    • BatchSizeOptimization

      private BatchSizeOptimization()
  • Method Details

    • values

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

      public static BatchSizeOptimization valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null