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.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[] |
_bp |
protected float[] |
_e |
protected Layer.Input |
_input |
protected Layer |
_previous |
protected float[] |
_w |
protected float[] |
_wm |
protected float[] |
_wp |
static DocGen.FieldDoc[] |
DOC_FIELDS |
float |
l1 |
float |
l2 |
long |
momentum_ramp |
float |
momentum_stable |
float |
momentum_start |
boolean |
per_weight |
float |
rate |
float |
rate_annealing |
int |
units |
| Constructor and Description |
|---|
Layer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
bprop() |
protected void |
bprop(int u,
float g,
float r,
float m)
Apply gradient g to unit u with rate r and momentum m.
|
Layer |
clone() |
void |
close() |
protected abstract void |
fprop(boolean training) |
void |
init(Layer[] ls,
int index) |
void |
init(Layer[] ls,
int index,
boolean weights,
long step,
java.util.Random rand) |
float |
momentum(long n) |
float |
rate(long n) |
static void |
shareWeights(Layer[] src,
Layer[] dst) |
static void |
shareWeights(Layer src,
Layer dst) |
AutoBuffer |
writeJSON(AutoBuffer bb) |
frozenType, init, newInstance, read, toDocField, write, writeJSONFieldspublic static DocGen.FieldDoc[] DOC_FIELDS
public int units
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 boolean per_weight
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 float[] _wp
protected transient float[] _bp
protected transient Layer _previous
protected transient Layer.Input _input
public final void init(Layer[] ls, int index)
public void init(Layer[] ls, int index, boolean weights, long step, java.util.Random rand)
public void close()
protected abstract void fprop(boolean training)
protected abstract void bprop()
protected final void bprop(int u,
float g,
float r,
float m)
public float rate(long n)
public float momentum(long n)
public AutoBuffer writeJSON(AutoBuffer bb)