/// <summary> /// }{debug /// 初始化记忆库时,需要给一定的优质记忆,否则记忆库里全是错误记忆,当action可选范围很大时,无法拟合 /// </summary> /// <param name="rememberSize"></param> public void PreRemember(int rememberSize) { double[] state = _env.Reset(); for (int i = 0; i < rememberSize; i++) { //增加随机探索记忆 double[] action = _env.RandomAction(); var(nextState, reward) = _env.Step(action); Remember(state, action, 0, reward, nextState); state = nextState; } }