public void update() { neuralMatrix = null; loadHistoryData(""); //重新训练 training(); //保存 save(); //给出预测值 predict(); }
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); }