|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.Neuro.Layer
public class Layer
This class defines a layer in a neural network.
| Field Summary | |
|---|---|
(package private) vector |
error
|
(package private) vector |
in
|
(package private) int |
inSize
|
(package private) matrix |
lastDelta
|
(package private) vector |
out
|
(package private) int |
outSize
|
(package private) matrix |
weight
|
| Constructor Summary | |
|---|---|
Layer()
Make an empty layer |
|
Layer(int n,
int m)
Make a nxm layer |
|
| Method Summary | |
|---|---|
void |
generate()
generate the parameters of the layer |
vector |
getError()
get error vector |
vector |
getInput()
get input vector |
int |
getInputSize()
get input size |
matrix |
getLastDelteMatrix()
get last delta matrix |
vector |
getOutput()
get output vector |
int |
getOutputSize()
get output size |
matrix |
getWeight()
get weight matrix |
void |
initWeight(double a,
double b)
Initialize the weight matrix with random values between a and b |
void |
resize(int n,
int m)
resize the layer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int inSize
int outSize
vector in
vector out
vector error
matrix weight
matrix lastDelta
| Constructor Detail |
|---|
public Layer()
public Layer(int n,
int m)
n - An integer value, the input sizem - An integer value, the output size| Method Detail |
|---|
public void initWeight(double a,
double b)
a - A double valueb - A double valuepublic int getInputSize()
public int getOutputSize()
public vector getError()
public vector getInput()
public vector getOutput()
public matrix getWeight()
public matrix getLastDelteMatrix()
public void resize(int n,
int m)
n - An integer value, the input sizem - An integer value, the output sizepublic void generate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||