d3rlpy.q_functions.MeanQFunctionFactory

class d3rlpy.q_functions.MeanQFunctionFactory[source]

Standard Q function factory class.

This is the standard Q function factory class.

References

Methods

create(encoder, action_size=None)[source]

Returns PyTorch’s Q function module.

Parameters:
  • encoder (torch.nn.Module) – an encoder module that processes the observation (and action in continuous action-space) to obtain feature representations.
  • action_size (int) – dimension of discrete action-space. If the action-space is continous, None will be passed.
Returns:

Q function object.

Return type:

torch.nn.Module

get_params(deep=False)[source]

Returns Q function parameters.

Returns:Q function parameters.
Return type:dict
get_type()

Returns Q function type.

Returns:Q function type.
Return type:str

Attributes

TYPE = 'mean'