Dqn
mighty.mighty_models.dqn
#
Policy networks for DQN and extensions.
DQN
#
Bases: Module
DQN network.
Source code in mighty/mighty_models/dqn.py
forward
#
Forward pass.
Source code in mighty/mighty_models/dqn.py
reset_head
#
Reset the head of the network.
Source code in mighty/mighty_models/dqn.py
shrink_weights
#
Shrink weights of the network.
Source code in mighty/mighty_models/dqn.py
IQN
#
IQN(
num_actions,
obs_size,
num_taus=16,
n_cos=64,
feature_extractor="mlp",
dueling=False,
**feature_extractor_kwargs,
)
Bases: DQN
IQN network, based on BY571/IQN-and-Extensions.
Source code in mighty/mighty_models/dqn.py
forward
#
Forward pass.
Source code in mighty/mighty_models/dqn.py
get_taus
#
reset_head
#
Reset the head of the network.
Source code in mighty/mighty_models/dqn.py
shrink_weights
#
Shrink weights of the network.
Source code in mighty/mighty_models/dqn.py
SPRQN
#
Bases: Module
SPRQN network.
Source code in mighty/mighty_models/dqn.py
forward
#
Forward pass.
Source code in mighty/mighty_models/dqn.py
make_q_head
#
Make Q head network.