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.Output, Layer.Rectifier, Layer.Tanh

public abstract class Layer
extends Iced

Neural network layer.


Nested Class Summary
static class Layer.ChunkLinear
           
static class Layer.ChunksInput
           
static class Layer.ChunkSoftmax
           
static class Layer.Input
           
static class Layer.Linear
           
static class Layer.Output
           
static class Layer.Rectifier
           
static class Layer.Softmax
           
static class Layer.Tanh
           
static class Layer.VecLinear
           
static class Layer.VecsInput
           
static class Layer.VecSoftmax
           
 
Field Summary
 float _l2
           
 float _momentum
           
 float _momentumAnnealing
           
 float _perWeight
           
 float _perWeightAnnealing
           
 float _rate
           
 float _rateAnnealing
           
 int _units
           
 
Constructor Summary
protected Layer(int units)
           
 
Method Summary
 void anneal(long n)
           
 Layer clone()
           
static void copyWeights(Layer[] src, Layer[] dst)
           
 void init(Layer[] ls, int index)
           
 void init(Layer[] ls, int index, boolean weights, long step)
           
 void momentum(long n)
           
 
Methods inherited from class water.Iced
frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_units

public int _units

_rate

public float _rate

_rateAnnealing

public float _rateAnnealing

_momentum

public float _momentum

_momentumAnnealing

public float _momentumAnnealing

_perWeight

public float _perWeight

_perWeightAnnealing

public float _perWeightAnnealing

_l2

public float _l2
Constructor Detail

Layer

protected Layer(int units)
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)

momentum

public final void momentum(long n)

clone

public Layer clone()
Overrides:
clone in class Iced

copyWeights

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