|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILayer
Defines methods required by a layer of a neural network.
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. |
double[] |
evaluate(double[] inputs)
Apply the given inputs and return the output of the layer. |
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()
Return a hash code. |
void |
setActivationFunction(IActivationFunction function)
Set the activation function. |
void |
setInput(int i,
double value)
|
void |
setInputs(double[] inputs)
|
String |
toDetailString()
Return a string representation of the details of this object. |
String |
toString()
Return a string representation of this object. |
Method Detail |
---|
void clear()
void clearInputs()
void clearOutputs()
Object clone()
boolean equals(Object object)
equals
in class Object
object
- The object to compare equality against.
true
if the objects are equal, otherwise
false
double[] evaluate(double[] inputs)
inputs
- Node input values.IActivationFunction getActivationFunction()
double getInput(int i)
i
- Index.int getInputCount()
double[] getInputs()
int getMaxValueIndex()
String getName()
double getOutput(int i)
i
- Index.int getOutputCount()
double[] getOutputs()
int hashCode()
hashCode
in class Object
void setActivationFunction(IActivationFunction function)
function
- Activation function.void setInput(int i, double value)
value
- The input value to set.void setInputs(double[] inputs)
inputs
- The inputs to set.String toDetailString()
String toString()
toString
in class Object
|
||||||||||
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 |