Skip to content

Commit

Permalink
'ppo_agent_x(#1)'
Browse files Browse the repository at this point in the history
  • Loading branch information
baijinqiu committed Dec 24, 2023
1 parent 2b63a5d commit 86df934
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions docs/source/documents/api/agents/drl/ppg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ PPG_Agent

:param obs: The observation variables.
:type obs: np.ndarray
:return: xxxxxx.
:rtype: xxxxxx
:return: selected actions, value estimates, and probability distributions.
:rtype: tuple

.. py:function::
xuance.mindspore.agents.policy_gradient.ppg_agent.PPG_Agent.train(train_steps)
Expand All @@ -139,11 +139,11 @@ PPG_Agent
xuance.mindspore.agents.policy_gradient.pg_agent.PG_Agent.test(env_fn,test_episodes)

:param env_fn: The function of making environments.
:type env_fn: xxxxxx
:param test_episodes: The number of testing episodes.
:type test_episodes: int
:return: xxxxxx.
:rtype: xxxxxx
:return: **scores** - The accumulated scores of these episodes.
:rtype: list


.. raw:: html

Expand Down
14 changes: 7 additions & 7 deletions docs/source/documents/api/agents/drl/ppo_clip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ PPOCLIP_Agent

:param obs: The observation variables.
:type obs: np.ndarray
:return: xxxxxx.
:rtype: xxxxxx
:return: selected actions, value estimates, and log probabilities.
:rtype: tuple

.. py:function::
xuance.mindspore.agents.policy_gradient.ppoclip_agent.PPOCLIP_Agent.train(train_steps)
Expand All @@ -139,11 +139,11 @@ PPOCLIP_Agent
xuance.mindspore.agents.policy_gradient.ppoclip_agent.PPOCLIP_Agent.test(env_fn,test_episode)

:param env_fn: The function of making environments.
:type env_fn: xxxxxx
:param test_episode: xxxxxx.
:type test_episode: xxxxxx
:return: xxxxxx.
:rtype: xxxxxx
:param test_episodes: The number of testing episodes.
:type test_episodes: int
:return: **scores** - The accumulated scores of these episodes.
:rtype: list

.. raw:: html

<br><hr>
Expand Down

0 comments on commit 86df934

Please sign in to comment.