public abstract class Nerve extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected ActiveFunction |
activeFunction |
protected LayNorm |
afterLayNorm |
protected LayNorm |
beforeLayNorm |
protected int |
depth |
protected double |
E |
protected Matrix |
featureMatrix |
protected LineBlock |
lineBlock |
protected int |
myUpNumber |
protected String |
name |
protected Matrix |
outMatrix |
protected Matrix |
powerMatrix |
protected Map<Long,Matrix> |
reMatrixFeatures |
protected Matrix |
sigmaW |
protected double |
studyPoint |
| 限定符 | 构造器和说明 |
|---|---|
protected |
Nerve(int id,
String name,
double studyPoint,
ActiveFunction activeFunction,
int sensoryNerveNub,
int hiddenNerveNub,
int outNerveNub,
LineBlock lineBlock,
int regularModel,
double regular,
int coreNumber) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connect(List<Nerve> nerveList) |
void |
connectFather(List<Nerve> nerveList) |
int |
getDepth() |
int |
getId() |
double[][] |
getModel() |
protected void |
input(long eventId,
Matrix parameter,
boolean isStudy,
Matrix allFeature,
OutBack outBack,
List<Integer> E,
Matrix encoderFeature,
boolean outAllPro) |
protected boolean |
insertMatrixParameter(long eventID,
Matrix matrix) |
void |
insertModel(double[][] modelPower) |
protected Matrix |
opMatrix(Matrix feature,
boolean isStudy) |
protected void |
sendMessage(long eventId,
Matrix parameter,
boolean isStudy,
Matrix allFeature,
OutBack outBack,
List<Integer> E,
Matrix encoderFeature,
boolean outAllPro) |
protected void |
sendOutMessage(long eventId,
Matrix parameter,
boolean isStudy,
OutBack outBack,
List<Integer> E,
boolean outAllPro) |
void |
setAfterLayNorm(LayNorm afterLayNorm) |
void |
setBeforeLayNorm(LayNorm beforeLayNorm) |
protected void |
toOut(long eventId,
Matrix parameter,
boolean isStudy,
OutBack outBack,
List<Integer> E,
boolean outAllPro) |
protected void |
updatePower(long eventId,
Matrix errorMatrix,
Matrix allError) |
protected LayNorm beforeLayNorm
protected LayNorm afterLayNorm
protected Matrix powerMatrix
protected String name
protected Matrix featureMatrix
protected double E
protected double studyPoint
protected LineBlock lineBlock
protected Matrix sigmaW
protected ActiveFunction activeFunction
protected Matrix outMatrix
protected int myUpNumber
protected int depth
protected Nerve(int id,
String name,
double studyPoint,
ActiveFunction activeFunction,
int sensoryNerveNub,
int hiddenNerveNub,
int outNerveNub,
LineBlock lineBlock,
int regularModel,
double regular,
int coreNumber)
throws Exception
Exceptionpublic int getDepth()
public void setBeforeLayNorm(LayNorm beforeLayNorm)
public void setAfterLayNorm(LayNorm afterLayNorm)
public double[][] getModel()
protected void sendMessage(long eventId,
Matrix parameter,
boolean isStudy,
Matrix allFeature,
OutBack outBack,
List<Integer> E,
Matrix encoderFeature,
boolean outAllPro)
throws Exception
Exceptionprotected void input(long eventId,
Matrix parameter,
boolean isStudy,
Matrix allFeature,
OutBack outBack,
List<Integer> E,
Matrix encoderFeature,
boolean outAllPro)
throws Exception
Exceptionprotected void toOut(long eventId,
Matrix parameter,
boolean isStudy,
OutBack outBack,
List<Integer> E,
boolean outAllPro)
throws Exception
Exceptionprotected void sendOutMessage(long eventId,
Matrix parameter,
boolean isStudy,
OutBack outBack,
List<Integer> E,
boolean outAllPro)
throws Exception
Exceptionprotected void updatePower(long eventId,
Matrix errorMatrix,
Matrix allError)
throws Exception
Exceptionprotected boolean insertMatrixParameter(long eventID,
Matrix matrix)
throws Exception
Exceptionpublic int getId()
Copyright © 2024. All rights reserved.