com.marmoush.jann.sv.bp
Class NNFeedForwardBPNet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<SvLayer>
              extended by com.marmoush.jann.sv.bp.NNFeedForwardBPNet
All Implemented Interfaces:
Serializable, Cloneable, Iterable<SvLayer>, Collection<SvLayer>, List<SvLayer>, RandomAccess

public class NNFeedForwardBPNet
extends ArrayList<SvLayer>

The Class NNFeedForwardBPNet.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NNFeedForwardBPNet()
          Instantiates a new nN feed forward bp net.
NNFeedForwardBPNet(Collection<? extends SvLayer> c)
          Instantiates a new nN feed forward bp net.
NNFeedForwardBPNet(int initialCapacity)
          Instantiates a new nN feed forward bp net.
 
Method Summary
protected  void adapt()
          Adapt.
static DoubleMatrix backPropagate(DoubleMatrix weight, DoubleMatrix error)
          Back propagate.
static NNFeedForwardBPNet create(int inputLength, int... lyrsNumOfNeurons)
          Creates the.
static DoubleMatrix deltaRuleBp(DoubleMatrix inputTransposed, DoubleMatrix error, DoubleMatrix diffOutput, double learnRate)
          Delta rule bp.
protected  void netBackpropagate(DoubleMatrix error)
          Net backpropagate.
 DoubleMatrix sim(DoubleMatrix newInput)
          Sim.
 void trainOnce(DoubleMatrix newInput, DoubleMatrix target)
          Train once.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

NNFeedForwardBPNet

public NNFeedForwardBPNet()
Instantiates a new nN feed forward bp net.


NNFeedForwardBPNet

public NNFeedForwardBPNet(Collection<? extends SvLayer> c)
Instantiates a new nN feed forward bp net.

Parameters:
c - the c

NNFeedForwardBPNet

public NNFeedForwardBPNet(int initialCapacity)
Instantiates a new nN feed forward bp net.

Parameters:
initialCapacity - the initial capacity
Method Detail

backPropagate

public static DoubleMatrix backPropagate(DoubleMatrix weight,
                                         DoubleMatrix error)
Back propagate.

Parameters:
weight - the weight
error - the error
Returns:
the double matrix

create

public static NNFeedForwardBPNet create(int inputLength,
                                        int... lyrsNumOfNeurons)
Creates the.

Parameters:
inputLength - the input length
lyrsNumOfNeurons - the lyrs num of neurons
Returns:
the nN feed forward bp net

deltaRuleBp

public static DoubleMatrix deltaRuleBp(DoubleMatrix inputTransposed,
                                       DoubleMatrix error,
                                       DoubleMatrix diffOutput,
                                       double learnRate)
Delta rule bp.

Parameters:
inputTransposed - the input transposed
error - the error
diffOutput - the diff output
learnRate - the learn rate
Returns:
the double matrix

adapt

protected void adapt()
Adapt.


netBackpropagate

protected void netBackpropagate(DoubleMatrix error)
Net backpropagate.

Parameters:
error - the error

sim

public DoubleMatrix sim(DoubleMatrix newInput)
Sim.

Parameters:
newInput - the new input
Returns:
the double matrix

trainOnce

public void trainOnce(DoubleMatrix newInput,
                      DoubleMatrix target)
Train once.

Parameters:
newInput - the new input
target - the target


Copyright © 2011-2012 Marmoush.com. All Rights Reserved.