Please write me a demonstration of PPO algorithm based on tensorflow2.0

According to the PPO algorithm implemented by tensorflow2.0, the code is as follows:python import tensorflow as tf import numpy as np# 设置参数 num_episodes = 1000 # 运行次数 lr_rate = 0.0005 gamma = 0.99 epsilon = 0.2# 建立PPO算法 class PPO: def __init__(self, state_size, action_size): self.state_size = state_size self.action_size = action_size s

Guess you like

Origin blog.csdn.net/weixin_42576410/article/details/129511916