Skip to content

Commit

Permalink
'qrdqn_agent_x(#1)'
Browse files Browse the repository at this point in the history
  • Loading branch information
baijinqiu committed Dec 24, 2023
1 parent 86df934 commit 1b19455
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/source/documents/api/agents/drl/qrdqn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@ QRDQN_Agent
:type scheduler: torch.optim.lr_scheduler._LRScheduler

.. py:function::
xuance.mindspore.agents.qlearning_family.qrdqn_agent.QRDQN_Agent._action(obs)
xuance.mindspore.agents.qlearning_family.qrdqn_agent.QRDQN_Agent._action(obs, egreedy)

:param obs: The observation variables.
:type obs: np.ndarray
:return: xxxxxx.
:rtype: xxxxxx
:param egreedy: The epsilon greedy factor.
:type egreedy: float
:return: **action** - The actions to be executed.
:rtype: np.ndarray

.. py:function::
xuance.mindspore.agents.qlearning_family.qrdqn_agent.QRDQN_Agent.train(train_steps)
Expand All @@ -143,11 +145,11 @@ QRDQN_Agent
xuance.mindspore.agents.qlearning_family.qrdqn_agent.QRDQN_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

<br><hr>
Expand Down

0 comments on commit 1b19455

Please sign in to comment.