public class NerveManager extends Object
| 构造器和说明 |
|---|
NerveManager(int sensoryNerveNub,
int hiddenNerveNub,
int outNerveNub,
int hiddenDepth,
ActiveFunction activeFunction,
double studyPoint,
int rzType,
double lParam,
int coreNumber)
初始化神经元参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
ModelParameter |
getConvModel() |
ModelParameter |
getDnnModel() |
List<SensoryNerve> |
getSensoryNerves() |
void |
init(boolean initPower,
boolean isShowLog,
boolean isSoftMax)
初始化
|
void |
initImageNet(int step,
int kernLen,
int xSize,
int ySize,
boolean isSoftMax,
boolean isShowLog,
double convStudyPoint,
ActiveFunction convFunction)
初始化卷积层神经网络
|
void |
insertConvModel(ModelParameter modelParameter) |
void |
insertDnnModel(ModelParameter modelParameter) |
public NerveManager(int sensoryNerveNub,
int hiddenNerveNub,
int outNerveNub,
int hiddenDepth,
ActiveFunction activeFunction,
double studyPoint,
int rzType,
double lParam,
int coreNumber)
throws Exception
sensoryNerveNub - 输入神经元个数hiddenNerveNub - 隐层神经元个数outNerveNub - 输出神经元个数hiddenDepth - 隐层深度activeFunction - 激活函数studyPoint - 线性分类器学习率rzType - 正则函数lParam - 正则系数coreNumber - 并行计算核心数Exception - 如果参数错误则抛异常public ModelParameter getConvModel() throws Exception
Exceptionpublic ModelParameter getDnnModel() throws Exception
Exceptionpublic void insertConvModel(ModelParameter modelParameter) throws Exception
Exceptionpublic void insertDnnModel(ModelParameter modelParameter)
public List<SensoryNerve> getSensoryNerves()
public void initImageNet(int step,
int kernLen,
int xSize,
int ySize,
boolean isSoftMax,
boolean isShowLog,
double convStudyPoint,
ActiveFunction convFunction)
throws Exception
step - 卷积步长 建议为2kernLen - 卷积核大小 建议为3xSize - 检测窗口行高ySize - 检测窗口行宽convStudyPoint - 卷积层学习率convFunction - 卷积层激活函数isShowLog - 是否打印学习参数isSoftMax - 最后一层是否用softMax激活ExceptionCopyright © 2024. All rights reserved.