public abstract class Layer extends Iced
| Modifier and Type | Class and Description |
|---|---|
static class |
Layer.Input |
static class |
Layer.Linear |
static class |
Layer.Maxout |
static class |
Layer.Output |
static class |
Layer.Rectifier |
static class |
Layer.RectifierDropout |
static class |
Layer.RectifierPrime |
static class |
Layer.Softmax |
static class |
Layer.Tanh |
static class |
Layer.TanhDropout |
static class |
Layer.TanhPrime
Apply tanh to the weights' transpose.
|
static class |
Layer.VecLinear |
static class |
Layer.VecsInput |
static class |
Layer.VecSoftmax |
| Modifier and Type | Field and Description |
|---|---|
protected float[] |
_a |
protected float[] |
_b |
protected float[] |
_bm |
protected float[] |
_e |
protected Layer |
_previous |
protected float[] |
_w |
protected float[] |
_wm |
static DocGen.FieldDoc[] |
DOC_FIELDS |
NeuralNet.InitialWeightDistribution |
initial_weight_distribution |
double |
initial_weight_scale |
float |
l1 |
float |
l2 |
float |
max_w2 |
long |
momentum_ramp |
float |
momentum_stable |
float |
momentum_start |
float |
rate |
float |
rate_annealing |
int |
units |
boolean |
unstable |
| Constructor and Description |
|---|
Layer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
bprop() |
Layer |
clone() |
void |
close() |
protected abstract void |
fprop(boolean training) |
void |
init(Layer[] ls,
int index,
boolean weights) |
void |
init(Layer[] ls,
int index,
NeuralNet p) |
float |
momentum(long n) |
float |
rate(long n) |
static void |
shareWeights(Layer[] src,
Layer[] dst) |
static void |
shareWeights(Layer src,
Layer dst) |
void |
transferParams(Layer p) |
void |
transferParams(NeuralNet p) |
AutoBuffer |
writeJSON(AutoBuffer bb) |
frozenType, init, newInstance, read, toDocField, write, writeJSONFieldspublic static DocGen.FieldDoc[] DOC_FIELDS
public int units
public NeuralNet.InitialWeightDistribution initial_weight_distribution
public double initial_weight_scale
public float rate
public float rate_annealing
public float l1
public float l2
public float momentum_start
public long momentum_ramp
public float momentum_stable
public float max_w2
public volatile boolean unstable
protected transient float[] _w
protected transient float[] _b
protected transient float[] _a
protected transient float[] _e
protected transient float[] _wm
protected transient float[] _bm
protected transient Layer _previous
public void transferParams(NeuralNet p)
public void transferParams(Layer p)
public void init(Layer[] ls, int index, boolean weights)
public void close()
protected abstract void fprop(boolean training)
protected abstract void bprop()
public float rate(long n)
public float momentum(long n)
public AutoBuffer writeJSON(AutoBuffer bb)