Package oracle.pgx.config.mllib
Enum WeightInitScheme
- java.lang.Object
-
- java.lang.Enum<WeightInitScheme>
-
- oracle.pgx.config.mllib.WeightInitScheme
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WeightInitScheme>
public enum WeightInitScheme extends java.lang.Enum<WeightInitScheme>
Initialization scheme used for weights
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HE
As per He et al.ONES
Weights are initialized with onesXAVIER
As per Glorot and Bengio (2010): Gaussian distribution with mean 0, variance 2.0/(fanIn + fanOut)XAVIER_UNIFORM
As per Glorot and Bengio (2010): Uniform distribution U(-s,s) with s = sqrt(6/(fanIn + fanOut))ZEROS
Weights are initialized with zeros
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WeightInitScheme
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WeightInitScheme[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZEROS
public static final WeightInitScheme ZEROS
Weights are initialized with zeros
-
ONES
public static final WeightInitScheme ONES
Weights are initialized with ones
-
XAVIER_UNIFORM
public static final WeightInitScheme XAVIER_UNIFORM
As per Glorot and Bengio (2010): Uniform distribution U(-s,s) with s = sqrt(6/(fanIn + fanOut))
-
HE
public static final WeightInitScheme HE
As per He et al. (2015): Normal distribution with variance 2.0/nIn
-
XAVIER
public static final WeightInitScheme XAVIER
As per Glorot and Bengio (2010): Gaussian distribution with mean 0, variance 2.0/(fanIn + fanOut)
-
-
Method Detail
-
values
public static WeightInitScheme[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WeightInitScheme c : WeightInitScheme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WeightInitScheme valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-