offline_rl

td3bc_agent

class xuance.tensorflow.agents.offline_rl.td3bc_agent.TD3_BC_Agent(config: Namespace, envs: DummyVecEnv | SubprocVecEnv | None = None, observation_space: gymnasium.spaces.Space | None = None, action_space: gymnasium.spaces.Space | None = None, callback: BaseCallback | None = None)[source]

Bases: OfflineAgent

The implementation of TD3_BC agent.

Parameters:
  • config – the Namespace variable that provides hyperparameters and other settings.

  • envs – the vectorized environments.

  • callback – A user-defined callback function object to inject custom logic during training.

get_actions(observations: numpy.ndarray)[source]
load_dataset(dataset)[source]
test(env_fn, test_episodes)[source]