public enum WeightInit extends java.lang.Enum<WeightInit>
DISTRIBUTION: Sample weights from a provided distribution
ZERO: Generate weights as zeros
SIGMOID_UNIFORM: A version of XAVIER_UNIFORM for sigmoid activation functions. U(-r,r) with r=4*sqrt(6/(fanIn + fanOut))
UNIFORM: Uniform U[-a,a] with a=1/sqrt(fanIn). "Commonly used heuristic" as per Glorot and Bengio 2010
XAVIER: 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))
XAVIER_FAN_IN: Similar to Xavier, but 1/fanIn -> Caffe originally used this.
XAVIER_LEGACY: Xavier weight init in DL4J up to 0.6.0. XAVIER should be preferred.
RELU: He et al. (2015), "Delving Deep into Rectifiers". Normal distribution with variance 2.0/nIn
RELU_UNIFORM: He et al. (2015), "Delving Deep into Rectifiers". Uniform distribution U(-s,s) with s = sqrt(6/fanIn)
Enum Constant and Description |
---|
DISTRIBUTION |
RELU |
RELU_UNIFORM |
SIGMOID_UNIFORM |
UNIFORM |
XAVIER |
XAVIER_FAN_IN |
XAVIER_LEGACY |
XAVIER_UNIFORM |
ZERO |
Modifier and Type | Method and Description |
---|---|
static WeightInit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeightInit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeightInit DISTRIBUTION
public static final WeightInit ZERO
public static final WeightInit SIGMOID_UNIFORM
public static final WeightInit UNIFORM
public static final WeightInit XAVIER
public static final WeightInit XAVIER_UNIFORM
public static final WeightInit XAVIER_FAN_IN
public static final WeightInit XAVIER_LEGACY
public static final WeightInit RELU
public static final WeightInit RELU_UNIFORM
public static WeightInit[] values()
for (WeightInit c : WeightInit.values()) System.out.println(c);
public static WeightInit 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