-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from rte-france/zrg-doc
D3QN&RDQN Configurable hyperparameters and documentation
- Loading branch information
Showing
23 changed files
with
745 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
DoubleDuelingDQN: A example implementation of Double Duelling Deep Q Network | ||
============================================================================ | ||
|
||
Description | ||
----------- | ||
This module serves as an concrete example on how to implement a D3QN baseline. | ||
This baseline is of type Double Duelling Deep Q Network, as in Duelling Q Network and DoubleQ update. | ||
|
||
It's main purpose is to provide an example of this network type running with Grid2Op. However, don't expect to obtain state of the art results. | ||
|
||
|
||
Agent class | ||
------------------------ | ||
You can use this class with: | ||
|
||
.. code-block:: python | ||
from l2rpn_baselines.DoubleDuelingDQN import DoubleDuelingDQN | ||
from l2rpn_baselines.DoubleDuelingDQN import train | ||
from l2rpn_baselines.DoubleDuelingDQN import evaluate | ||
.. automodule:: l2rpn_baselines.DoubleDuelingDQN.DoubleDuelingDQN | ||
:members: | ||
:autosummary: | ||
|
||
Configuration | ||
------------------------ | ||
Training a model requires tweaking many hyperparameters, these can be found in a specific class attributes: | ||
|
||
.. code-block:: python | ||
from l2rpn_baselines.DoubleDuelingDQN import DoubleDuelingDQNConfig | ||
# Set hyperparameters before training | ||
DoubleDuelingDQNConfig.LR = 1e-5 | ||
DoubleDuelingDQNConfig.INITAL_EPSILON = 1.0 | ||
DoubleDuelingDQNConfig.FINAL_EPSILON = 0.001 | ||
DoubleDuelingDQNConfig.DECAY_EPSILON = 10000 | ||
.. automodule:: l2rpn_baselines.DoubleDuelingDQN.DoubleDuelingDQNConfig | ||
:members: | ||
:undoc-members: | ||
|
||
Internal classes | ||
------------------------ | ||
The neural network model is defined in a separate class. | ||
You may want to import it manually: | ||
|
||
.. code-block:: python | ||
from l2rpn_baselines.DoubleDuelingDQN.DoubleDuelingDQN_NN import DoubleDuelingDQN_NN | ||
.. autoclass:: l2rpn_baselines.DoubleDuelingDQN.DoubleDuelingDQN_NN.DoubleDuelingDQN_NN | ||
:members: | ||
:autosummary: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
DoubleDuelingRDQN: A example implementation of Recurrent DoubleQ Network | ||
======================================================================== | ||
|
||
Description | ||
----------- | ||
This module serves as an concrete example on how to implement a recurrent D3QN baseline. | ||
This baseline is of type Recurrent Double Duelling Deep Q Network, as in Duelling Q, DoubleQ update and recurrent neural network. | ||
|
||
It's main purpose is to provide an example of this network type running with Grid2Op. However, don't expect to obtain state of the art results. | ||
|
||
|
||
Agent class | ||
------------------------ | ||
You can use this class with: | ||
|
||
.. code-block:: python | ||
from l2rpn_baselines.DoubleDuelingRDQN import DoubleDuelingRDQN | ||
from l2rpn_baselines.DoubleDuelingRDQN import train | ||
from l2rpn_baselines.DoubleDuelingRDQN import evaluate | ||
.. automodule:: l2rpn_baselines.DoubleDuelingRDQN.DoubleDuelingRDQN | ||
:members: | ||
:autosummary: | ||
|
||
Configuration | ||
------------------------ | ||
Training a model requires tweaking many hyperparameters, these can be found in a specific class attributes: | ||
|
||
.. code-block:: python | ||
from l2rpn_baselines.DoubleDuelingRDQN import DoubleDuelingRDQNConfig | ||
# Set hyperparameters before training | ||
DoubleDuelingRDQNConfig.LR = 1e-5 | ||
DoubleDuelingRDQNConfig.TRACE_LENGTH = 12 | ||
.. automodule:: l2rpn_baselines.DoubleDuelingRDQN.DoubleDuelingRDQNConfig | ||
:members: | ||
:undoc-members: | ||
|
||
Internal classes | ||
------------------------ | ||
The neural network model is defined in a separate class. | ||
You may want to import it manually: | ||
|
||
.. code-block:: python | ||
from l2rpn_baselines.DoubleDuelingRDQN.DoubleDuelingRDQN_NN import DoubleDuelingRDQN_NN | ||
.. autoclass:: l2rpn_baselines.DoubleDuelingRDQN.DoubleDuelingRDQN_NN.DoubleDuelingRDQN_NN | ||
:members: | ||
:autosummary: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.