Exemple #1
0
 /// <summary>
 /// 初始化权值
 /// </summary>
 public virtual void Randomize()
 {
     for (int i = 0; i < InputsCount; i++)
     {
         // 创建在 RandRange.Max 和 RandRange.Min 范围内的随机数
         Weights[i] = RandRange.GetRan();
     }
 }
 /// <summary>
 /// 初始化权值阈值
 /// </summary>
 public override void Randomize()
 {
     base.Randomize();
     Threshold = RandRange.GetRan();
 }