public abstract class CompoundStack<T extends IParameterised> extends ALayerStack
| Modifier and Type | Field and Description |
|---|---|
protected int |
componentCount |
protected ArrayList<T> |
components |
| Constructor and Description |
|---|
CompoundStack(Collection<T> comps) |
| Modifier and Type | Method and Description |
|---|---|
abstract CompoundStack<T> |
clone()
Creates a clone of a module, including a deep copy of any mutable state.
|
T |
getComponent(int i) |
List<T> |
getComponents()
Returns a list of sub-components of this module
|
abstract mikera.vectorz.AVector |
getData(int i) |
mikera.vectorz.AVector |
getGradient()
Return an AVector referencing the accumulated gradient in this model
|
abstract AWeightLayer |
getLayer(int i) |
abstract int |
getLayerCount() |
mikera.vectorz.AVector |
getParameters()
Return an AVector referring to the parameters in the model.
|
abstract void |
think(mikera.vectorz.AVector input,
mikera.vectorz.AVector output) |
getInput, getLayers, getOutput, getParameterLength, train, trainGradientequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputLengthgetInputLengthprotected final ArrayList<T extends IParameterised> components
protected final int componentCount
public CompoundStack(Collection<T> comps)
public List<T> getComponents()
IModulepublic T getComponent(int i)
public abstract void think(mikera.vectorz.AVector input,
mikera.vectorz.AVector output)
public mikera.vectorz.AVector getParameters()
IParameterisedpublic mikera.vectorz.AVector getGradient()
IParameterisedpublic abstract int getLayerCount()
getLayerCount in class ALayerStackpublic abstract AWeightLayer getLayer(int i)
getLayer in class ALayerStackpublic abstract mikera.vectorz.AVector getData(int i)
getData in class ALayerStackpublic abstract CompoundStack<T> clone()
IModuleclone in interface IModuleclone in interface IParameterisedclone in interface IThinkerclone in class ALayerStackCopyright © 2013. All Rights Reserved.