Enum BatchSizeOptimization
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
An enum which describes entities on how to optimize the batch size.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNo batch size optimization.Use the longest texts in the dataset to determine the highest batch size.Use the longest texts in the dataset to determine the highest batch size but reduce the may batch size two times.Use the texts with the highest number of words to determine the highest batch size.Use a long lorem ipsum text to determine the highest batch size. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchSizeOptimization
Returns the enum constant of this type with the specified name.static BatchSizeOptimization[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USE_LONGEST_TEXTS
Use the longest texts in the dataset to determine the highest batch size. -
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
Use the texts with the highest number of words to determine the highest batch size. -
USE_THEORETICAL_MAX
Use a long lorem ipsum text to determine the highest batch size. -
NONE
No batch size optimization.
-
-
Constructor Details
-
BatchSizeOptimization
private BatchSizeOptimization()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-