未验证 提交 0be3e487 编写于 作者: H Hongsheng Zeng 提交者: GitHub

Update README.md

上级 1e2746fa
......@@ -10,8 +10,10 @@ DeepES是一个支持**快速验证**ES效果、**兼容多个框架**的C++库
auto agent = ESAgent(config);
for (int i = 0; i < 100; ++i) {
int key = agent->add_noise(); // 参数扰动,同时保存随机种子
int reward = evaluate(env, agent); //评估参数
auto sampling_agnet = agent->clone(); // clone出一个sampling agent
SamplingKey key;
agent->add_noise(key); // 参数扰动,同时保存随机种子到key中
int reward = evaluate(env, sampling_agent); //评估参数
noisy_keys.push_back(key); // 记录随机噪声对应种子
noisy_rewards.push_back(reward); // 记录评估结果
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册