public class NerveManager extends Object
| 构造器和说明 |
|---|
NerveManager(int sensoryNerveNub,
int hiddenNerveNub,
int outNerveNub,
int hiddenDepth,
ActiveFunction activeFunction,
boolean isDynamic,
double studyPoint,
int rzType,
double lParam)
初始化神经元参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
ModelParameter |
getModelParameter() |
List<SensoryNerve> |
getSensoryNerves() |
List<Double> |
getStudyList() |
void |
init(boolean initPower,
boolean isMatrix,
boolean isShowLog,
boolean isSoftMax,
int step,
int kernLen)
初始化
|
void |
initRnn(boolean initPower,
boolean isShowLog) |
void |
insertModelParameter(ModelParameter modelParameter) |
void |
setMatrixMap(Map<Integer,Matrix> matrixMap) |
void |
setSoftMax(boolean softMax) |
void |
setStudyList(List<Double> studyList) |
public NerveManager(int sensoryNerveNub,
int hiddenNerveNub,
int outNerveNub,
int hiddenDepth,
ActiveFunction activeFunction,
boolean isDynamic,
double studyPoint,
int rzType,
double lParam)
throws Exception
sensoryNerveNub - 输入神经元个数hiddenNerveNub - 隐层神经元个数outNerveNub - 输出神经元个数hiddenDepth - 隐层深度activeFunction - 激活函数isDynamic - 是否是动态神经元rzType - 正则函数lParam - 正则系数Exception - 如果参数错误则抛异常public void setSoftMax(boolean softMax)
public ModelParameter getModelParameter() throws Exception
Exceptionpublic void insertModelParameter(ModelParameter modelParameter) throws Exception
Exceptionpublic List<SensoryNerve> getSensoryNerves()
public void init(boolean initPower,
boolean isMatrix,
boolean isShowLog,
boolean isSoftMax,
int step,
int kernLen)
throws Exception
initPower - 是否是第一次注入isMatrix - 参数是否是一个矩阵isShowLog - 是否打印学习参数isSoftMax - 最后一层是否用softMax激活step - 卷积步长kernLen - 卷积核长ExceptionCopyright © 2024. All rights reserved.