DI-engine icon indicating copy to clipboard operation
DI-engine copied to clipboard

Training the gym-hybrid using hppo

Open ddharshan opened this issue 2 years ago • 1 comments

Hi I am new to DI-engine and trying to train the gym hybrid "thomashirtz" agent using HPPO. could you please explain me what are config,entry, envs folders are mentioning under DI-engine/dizoo/gym_hybrid/??

ddharshan avatar Aug 13 '22 07:08 ddharshan

  • envs: the wrapper which transform original gym env into DI-engine's format
  • config: the configuration file which contains the setting of Algorithm + Env (nested dict) and the default main function to run this config
  • entry: another main functions for running corresponding config

we suggest that you should implement your own main function for your demand, and you can imitate the following two files:

  • dizoo/gym_hybrid/entry/gym_hybrid_ddpg_main.py(for env)
  • ding/entry/serial_entry_onpolicy.py(for HPPO on policy algorithm)

PaParaZz1 avatar Aug 14 '22 08:08 PaParaZz1

Could you provide a hppo main function file ,I am new to DI-engine and H-PPO, thank you very much.

  • envs: the wrapper which transform original gym env into DI-engine's format
  • config: the configuration file which contains the setting of Algorithm + Env (nested dict) and the default main function to run this config
  • entry: another main functions for running corresponding config

we suggest that you should implement your own main function for your demand, and you can imitate the following two files:

  • dizoo/gym_hybrid/entry/gym_hybrid_ddpg_main.py(for env)
  • ding/entry/serial_entry_onpolicy.py(for HPPO on policy algorithm)

hugo921 avatar Aug 20 '23 02:08 hugo921