Custom Configurations¶
Users can also choose not to use the default parameters provided by XuanCe, or in cases where XuanCe does not include the user’s specific task, they can customize their own .yaml parameter configuration file in the same manner.
However, during the process of obtaining the runner, it is necessary to specify the location where the parameter file is stored, as shown below:
import xuance
runner = xuance.get_runner(algo='dqn',
env='classic_control',
env_id='CartPole-v1',
config_path="xxx/xxx.yaml")
runner.run(mode='train')