|
||||||||||
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
public abstract class AbstractLayer
Provides base functionality for a layer of a neural network.
Field Summary |
---|
Fields inherited from class org.vizzini.util.AbstractBean |
---|
IGNORE_PROPERTIES |
Constructor Summary | |
---|---|
AbstractLayer()
Construct this object. |
|
AbstractLayer(String name,
int nodeCount)
Construct this object with the given parameters. |
Method Summary | |
---|---|
void |
clear()
Clear the node input and output values. |
void |
clearInputs()
Clear the node input values. |
void |
clearOutputs()
Clear the node output values. |
Object |
clone()
Return a clone of this instance. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
IActivationFunction |
getActivationFunction()
Return the activation function. |
double |
getInput(int i)
Return the node input value at the given index. |
int |
getInputCount()
Return the input count. |
double[] |
getInputs()
Return the node input values. |
int |
getMaxValueIndex()
Return the index of the node with the maximum value. |
String |
getName()
Return the name. |
double |
getOutput(int i)
Return the node output value at the given index. |
int |
getOutputCount()
Return the output count. |
double[] |
getOutputs()
Return the node output values. |
int |
hashCode()
Returns a hash code value for the object. |
protected void |
init(int nodeCount)
Initialize using the given parameters. |
void |
setActivationFunction(IActivationFunction function)
Set the activation function. |
void |
setInput(int i,
double value)
|
protected void |
setInputCount(int count)
Set the input count. |
void |
setInputs(double[] inputs)
|
void |
setName(String name)
Set the name. |
protected void |
setOutput(int i,
double value)
|
protected void |
setOutputCount(int count)
Set the output count. |
protected void |
setOutputs(double[] outputs)
|
String |
toDetailString()
Return a string representation of the details of this object. |
String |
toString()
Return a string representation of this object. |
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 |
Methods inherited from interface org.vizzini.ai.neuralnetwork.ILayer |
---|
evaluate |
Constructor Detail |
---|
public AbstractLayer()
public AbstractLayer(String name, int nodeCount)
name
- Name.nodeCount
- Node count.Method Detail |
---|
public void clear()
clear
in interface ILayer
public void clearInputs()
clearInputs
in interface ILayer
public void clearOutputs()
clearOutputs
in interface ILayer
public Object clone()
clone
in interface ILayer
clone
in class Object
public boolean equals(Object object)
equals
in interface ILayer
equals
in class AbstractBean
object
- The object to compare.
true
if the objects are equal, otherwise
false
public IActivationFunction getActivationFunction()
getActivationFunction
in interface ILayer
public double getInput(int i)
getInput
in interface ILayer
i
- Index.public int getInputCount()
getInputCount
in interface ILayer
public double[] getInputs()
getInputs
in interface ILayer
public int getMaxValueIndex()
getMaxValueIndex
in interface ILayer
public String getName()
getName
in interface ILayer
public double getOutput(int i)
getOutput
in interface ILayer
i
- Index.public int getOutputCount()
getOutputCount
in interface ILayer
public double[] getOutputs()
getOutputs
in interface ILayer
public int hashCode()
hashCode
in interface ILayer
hashCode
in class AbstractBean
public void setActivationFunction(IActivationFunction function)
setActivationFunction
in interface ILayer
function
- Activation function.public void setInput(int i, double value)
setInput
in interface ILayer
i
- Index.value
- Value.public void setInputs(double[] inputs)
setInputs
in interface ILayer
inputs
- The inputs to set.public void setName(String name)
public String toDetailString()
toDetailString
in interface ILayer
public String toString()
toString
in interface ILayer
toString
in class AbstractBean
protected void init(int nodeCount)
nodeCount
- Node count.protected void setInputCount(int count)
count
- Count.protected void setOutput(int i, double value)
protected void setOutputCount(int count)
count
- Count.protected void setOutputs(double[] outputs)
outputs
- The outputs to set.
|
||||||||||
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 |