|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnector
Defines methods required by neural network layer connectors.
Method Summary | |
---|---|
void |
adjustWeights(double[][] deltas)
Adjust the given layer's weights by adding the given deltas. |
Object |
clone()
Return a clone of this instance. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
void |
fillWeights(double value)
Assign the given value to all weights of the neural network. |
ILayer |
getFromLayer()
Return the from layer. |
ILayer |
getToLayer()
Return the to layer. |
double |
getWeight(int i,
int j)
Return the weight for the given parameters. |
int |
getWeightCount()
Return a count of the weights. |
double[] |
getWeights(int i)
Return the weights for the given parameters. |
int |
hashCode()
Return a hash code. |
void |
randomizeWeights()
Assign random weights. |
void |
randomizeWeights(double range)
Assign random weights. |
void |
setWeight(int i,
int j,
double weight)
Set the weight for the given parameters. |
String |
toString()
Return a string representation of this object. |
void |
zeroWeights()
Assign zero weights. |
Method Detail |
---|
void adjustWeights(double[][] deltas)
deltas
- Weight deltas for the given layer.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
void fillWeights(double value)
ILayer getFromLayer()
ILayer getToLayer()
double getWeight(int i, int j)
i
- From layer node index.j
- To layer node index.int getWeightCount()
double[] getWeights(int i)
i
- From layer node index.int hashCode()
hashCode
in class Object
void randomizeWeights()
void randomizeWeights(double range)
range
- ±Range of random weights around zero.void setWeight(int i, int j, double weight)
i
- From layer node index.j
- To layer node index.weight
- New weight.String toString()
toString
in class Object
void zeroWeights()
|
||||||||||
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 |