d3rlpy.models.q_functions.QRQFunctionFactory¶
- class d3rlpy.models.q_functions.QRQFunctionFactory(bootstrap=False, share_encoder=False, n_quantiles=32)[source]¶
Quantile Regression Q function factory class.
References
- Parameters
Methods
- create_continuous(encoder)[source]¶
Returns PyTorch’s Q function module.
- Parameters
encoder (d3rlpy.models.torch.encoders.EncoderWithAction) – an encoder module that processes the observation and action to obtain feature representations.
- Returns
continuous Q function object.
- Return type
d3rlpy.models.torch.q_functions.qr_q_function.ContinuousQRQFunction
- create_discrete(encoder, action_size)[source]¶
Returns PyTorch’s Q function module.
- Parameters
encoder (d3rlpy.models.torch.encoders.Encoder) – an encoder module that processes the observation to obtain feature representations.
action_size (int) – dimension of discrete action-space.
- Returns
discrete Q function object.
- Return type
d3rlpy.models.torch.q_functions.qr_q_function.DiscreteQRQFunction
Attributes
- bootstrap¶
- n_quantiles¶