mirror of
https://gitee.com/dromara/easyAi.git
synced 2024-11-30 02:37:42 +08:00
增加注释
This commit is contained in:
parent
eb92d8c8ef
commit
83115f3779
@ -59,31 +59,23 @@ public class TempleConfig {
|
|||||||
private double lParam = 0;//正则参数
|
private double lParam = 0;//正则参数
|
||||||
private int hiddenNerveNub = 9;//隐层神经元个数
|
private int hiddenNerveNub = 9;//隐层神经元个数
|
||||||
|
|
||||||
public void setRzType(int rzType) {
|
public void setRzType(int rzType) {//设置正则化函数
|
||||||
this.rzType = rzType;
|
this.rzType = rzType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setlParam(double lParam) {
|
public void setlParam(double lParam) {//设置正则参数
|
||||||
this.lParam = lParam;
|
this.lParam = lParam;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMatrixWidth(double matrixWidth) {
|
public void setMatrixWidth(double matrixWidth) {//设置卷积层正则参数
|
||||||
this.matrixWidth = matrixWidth;
|
this.matrixWidth = matrixWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAccurate() {
|
public void setStudyPoint(double studyPoint) {//设置学习率
|
||||||
return isAccurate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAccurate(boolean accurate) {//设置是否保留精度
|
|
||||||
isAccurate = accurate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStudyPoint(double studyPoint) {
|
|
||||||
this.studyPoint = studyPoint;
|
this.studyPoint = studyPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setActiveFunction(ActiveFunction activeFunction) {
|
public void setActiveFunction(ActiveFunction activeFunction) {//设置激活函数
|
||||||
this.activeFunction = activeFunction;
|
this.activeFunction = activeFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,7 +87,7 @@ public class TempleConfig {
|
|||||||
this.avg = avg;
|
this.avg = avg;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Normalization getNormalization() {
|
public Normalization getNormalization() {//获取归一化类
|
||||||
return normalization;
|
return normalization;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,7 +108,7 @@ public class TempleConfig {
|
|||||||
this.classifier = classifier;
|
this.classifier = classifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
public VectorK getVectorK() {
|
public VectorK getVectorK() {//获取均值特征矩阵
|
||||||
return vectorK;
|
return vectorK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,7 +173,7 @@ public class TempleConfig {
|
|||||||
return kClusteringMap;
|
return kClusteringMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLvqNub(int lvqNub) {
|
public void setLvqNub(int lvqNub) {//设置LVQ循环次数
|
||||||
this.lvqNub = lvqNub;
|
this.lvqNub = lvqNub;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +181,7 @@ public class TempleConfig {
|
|||||||
return iouTh;
|
return iouTh;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIouTh(double iouTh) {
|
public void setIouTh(double iouTh) {//设置IOU阈值
|
||||||
this.iouTh = iouTh;
|
this.iouTh = iouTh;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,7 +201,7 @@ public class TempleConfig {
|
|||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFrame(Frame frame) {
|
public void setFrame(Frame frame) {//设置视窗
|
||||||
this.frame = frame;
|
this.frame = frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,15 +213,11 @@ public class TempleConfig {
|
|||||||
return nerveManager;
|
return nerveManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNerveManager(NerveManager nerveManager) {
|
|
||||||
this.nerveManager = nerveManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isHavePosition() {
|
public boolean isHavePosition() {
|
||||||
return isHavePosition;
|
return isHavePosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHavePosition(boolean havePosition) {
|
public void setHavePosition(boolean havePosition) {//设置定位服务
|
||||||
isHavePosition = havePosition;
|
isHavePosition = havePosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ public abstract class Nerve {
|
|||||||
protected double sigmaW;//对上一层权重与上一层梯度的积进行求和
|
protected double sigmaW;//对上一层权重与上一层梯度的积进行求和
|
||||||
private int backNub = 0;//当前节点被反向传播的次数
|
private int backNub = 0;//当前节点被反向传播的次数
|
||||||
protected ActiveFunction activeFunction;
|
protected ActiveFunction activeFunction;
|
||||||
private boolean isAccurate = false;//是否保留精度
|
private boolean isAccurate;//是否保留精度
|
||||||
private int rzType;//正则化类型,默认不进行正则化
|
private int rzType;//正则化类型,默认不进行正则化
|
||||||
private double lParam;//正则参数
|
private double lParam;//正则参数
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user