LucasAlegre / morl-baselines

Multi-Objective Reinforcement Learning algorithms implementations.
https://lucasalegre.github.io/morl-baselines
MIT License
271 stars 44 forks source link

how to run the file named gpi_pd_hopper.py in the example folder? #79

Closed man469 closed 9 months ago

man469 commented 9 months ago

I try to run the code gpi_pd_hopper.py in the example folder, but got the following error: ERROR: The function received no value for the required argument: algo Usage: gpi_pd_minecart.py ALGO GPI_PD G optional flags: --timesteps_per_iter | --seed

For detailed information on this command, run: gpi_pd_minecart.py --help An exception has occurred, use %tb to see the full traceback.

It seems that I have to pass some value to algo, could anyone give more instructions about how to run this code? Thank you very much!

LucasAlegre commented 9 months ago

Hi,

You have to pass algo="gpi-ls". See the documentation to check the parameters of each algorithm. You can also see in the gpi_pd_hopper.py file the parameters of this script.

man469 commented 9 months ago

Thank you very much for your help!