|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.AbstractBean
org.vizzini.ai.neuralnetwork.layer.AbstractLayer
org.vizzini.ai.neuralnetwork.layer.AbstractFunctionLayer
public abstract class AbstractFunctionLayer
Provides base functionality for a activation function layer of a neural network.
Field Summary |
---|
Fields inherited from class org.vizzini.util.AbstractBean |
---|
IGNORE_PROPERTIES |
Constructor Summary | |
---|---|
AbstractFunctionLayer()
Construct this object. |
|
AbstractFunctionLayer(String name,
int nodeCount)
Construct this object with the given parameters. |
|
AbstractFunctionLayer(String name,
int nodeCount,
boolean isBiasNodeUsed)
Construct this object with the given parameters. |
Method Summary | |
---|---|
void |
clearOutputs()
Clear the node output values. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
double[] |
evaluate(double[] inputs)
Apply the given inputs and return the output of the layer. |
IActivationFunction |
getActivationFunction()
Return the activation function. |
protected void |
init(int nodeCount)
Initialize using the given parameters. |
boolean |
isBiasNodeUsed()
|
void |
setActivationFunction(IActivationFunction function)
Set the activation function. |
void |
setBiasNodeUsed(boolean isBiasNodeUsed)
|
Methods inherited from class org.vizzini.ai.neuralnetwork.layer.AbstractLayer |
---|
clear, clearInputs, clone, getInput, getInputCount, getInputs, getMaxValueIndex, getName, getOutput, getOutputCount, getOutputs, hashCode, setInput, setInputCount, setInputs, setName, setOutput, setOutputCount, setOutputs, toDetailString, toString |
Methods inherited from class org.vizzini.util.AbstractBean |
---|
appendArray, appendCollection, appendList, appendMap, compareBooleans, compareObjects, getIgnoreProperties |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractFunctionLayer()
public AbstractFunctionLayer(String name, int nodeCount)
name
- Name.nodeCount
- Node count.public AbstractFunctionLayer(String name, int nodeCount, boolean isBiasNodeUsed)
name
- Name.nodeCount
- Node count.isBiasNodeUsed
- Flag indicating if a bias node is used.Method Detail |
---|
public void clearOutputs()
clearOutputs
in interface ILayer
clearOutputs
in class AbstractLayer
public boolean equals(Object object)
equals
in interface ILayer
equals
in class AbstractLayer
object
- The object to compare.
true
if the objects are equal, otherwise
false
public double[] evaluate(double[] inputs)
inputs
- Node input values.public IActivationFunction getActivationFunction()
getActivationFunction
in interface ILayer
getActivationFunction
in class AbstractLayer
public boolean isBiasNodeUsed()
public void setActivationFunction(IActivationFunction function)
setActivationFunction
in interface ILayer
setActivationFunction
in class AbstractLayer
function
- Activation function.public void setBiasNodeUsed(boolean isBiasNodeUsed)
isBiasNodeUsed
- The isBiasNodeUsed to set.protected void init(int nodeCount)
init
in class AbstractLayer
nodeCount
- Node count.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |