hex
Class Layer

java.lang.Object
  extended by water.Iced
      extended by hex.Layer
All Implemented Interfaces:
java.lang.Cloneable, Freezable
Direct Known Subclasses:
Layer.Input, Layer.Maxout, Layer.Output, Layer.Rectifier, Layer.Tanh

public abstract class Layer
extends Iced

Neural network layer.


Nested Class Summary
static class Layer.Input
           
static class Layer.Linear
           
static class Layer.Maxout
          Pulled from Chris Severs TODO finish merge
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
           
 
Field Summary
static DocGen.FieldDoc[] DOC_FIELDS
           
 float dropout
           
 float l2
           
 float rate
           
 float rate_annealing
           
 int units
           
 
Constructor Summary
Layer()
           
 
Method Summary
 void anneal(long n)
           
 Layer clone()
           
 void init(Layer[] ls, int index)
           
 void init(Layer[] ls, int index, boolean weights, long step)
           
 void 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)
           
 
Methods inherited from class water.Iced
frozenType, init, newInstance, read, toDocField, write, writeJSONFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOC_FIELDS

public static DocGen.FieldDoc[] DOC_FIELDS

units

public int units

rate

public float rate

rate_annealing

public float rate_annealing

l2

public float l2

dropout

public float dropout
Constructor Detail

Layer

public Layer()
Method Detail

init

public final void init(Layer[] ls,
                       int index)

init

public void init(Layer[] ls,
                 int index,
                 boolean weights,
                 long step)

anneal

public final void anneal(long n)

rate

public float rate(long n)

momentum

public final void momentum(long n)

clone

public Layer clone()
Overrides:
clone in class Iced

shareWeights

public static void shareWeights(Layer src,
                                Layer dst)

shareWeights

public static void shareWeights(Layer[] src,
                                Layer[] dst)

writeJSON

public AutoBuffer writeJSON(AutoBuffer bb)
Overrides:
writeJSON in class Iced