|
||||||||||
| 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 ILayerpublic void clearInputs()
clearInputs in interface ILayerpublic void clearOutputs()
clearOutputs in interface ILayerpublic Object clone()
clone in interface ILayerclone in class Objectpublic boolean equals(Object object)
equals in interface ILayerequals in class AbstractBeanobject - The object to compare.
true if the objects are equal, otherwise
falsepublic IActivationFunction getActivationFunction()
getActivationFunction in interface ILayerpublic double getInput(int i)
getInput in interface ILayeri - Index.public int getInputCount()
getInputCount in interface ILayerpublic double[] getInputs()
getInputs in interface ILayerpublic int getMaxValueIndex()
getMaxValueIndex in interface ILayerpublic String getName()
getName in interface ILayerpublic double getOutput(int i)
getOutput in interface ILayeri - Index.public int getOutputCount()
getOutputCount in interface ILayerpublic double[] getOutputs()
getOutputs in interface ILayerpublic int hashCode()
hashCode in interface ILayerhashCode in class AbstractBeanpublic void setActivationFunction(IActivationFunction function)
setActivationFunction in interface ILayerfunction - Activation function.
public void setInput(int i,
double value)
setInput in interface ILayeri - Index.value - Value.public void setInputs(double[] inputs)
setInputs in interface ILayerinputs - The inputs to set.public void setName(String name)
public String toDetailString()
toDetailString in interface ILayerpublic String toString()
toString in interface ILayertoString in class AbstractBeanprotected 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 |