예제 #1
0
 public void update()
 {
     neuralMatrix = null;
     loadHistoryData("");
     //重新训练
     training();
     //保存
     save();
     //给出预测值
     predict();
 }
예제 #2
0
 public void initial()
 {
     neuralMatrix = new BP(Constants.Input_Days * 4, Constants.Hidden_Layor_Count, Constants.Output_Days * 4);
     input        = new Vector(Constants.Input_Days * 4);
     Template     = new Vector(Constants.Output_Days * 4);
 }