public enum Repartition extends java.lang.Enum<Repartition>
ParameterAveragingTrainingMaster
(and possibly elsewhere.
"Never" and "Always" repartition options are as expected; the "NumPartitionsWorkersDiffers" will repartition data if and only
if the number of partitions is not equal to the number of workers (total cores). Note however that even if the number of partitions
and number of workers differ, this does not guarantee that those partitions are balanced (in terms of number of
elements) in any way.Enum Constant and Description |
---|
Always |
Never |
NumPartitionsWorkersDiffers |
Modifier and Type | Method and Description |
---|---|
static Repartition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Repartition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Repartition Never
public static final Repartition Always
public static final Repartition NumPartitionsWorkersDiffers
public static Repartition[] values()
for (Repartition c : Repartition.values()) System.out.println(c);
public static Repartition valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null