rlpyt icon indicating copy to clipboard operation
rlpyt copied to clipboard

Testing code examples

Open yd-yin opened this issue 4 years ago • 2 comments

Like this nice work of rl codebase. It's nice and pretty!

I wonder if there is any evaluation examples? I mean we have build and train, but do we have build and test?

yd-yin avatar Aug 16 '20 13:08 yd-yin

Hi! Good question. That isn't built in explicitly, but what I usually to do test is make copy of the script that has build_and_train in it, call it script_test.py, and inside that one I'll manually change whatever configurations I'm testing, and usually also set the config["runner"]["n_steps"] and config["runner"]["log_interval_steps"] to be small values, so that the diagnostics come back fast. Just remove the variant loading, and use something simple for the affinity code like: 0slt_1gpu_4cpu (if you have 4 cpus) or 0slot_0gpu_4cpu_4cpr if you have 4 cpus but no gpus.

Does that make sense?

astooke avatar Sep 05 '20 01:09 astooke

Hi! Thanks for the response. I got you, but still, building an explicit build and test may lower the difficulty for new comers (like me).

Actually, I finally refered to the code from https://github.com/petrikvladimir/rlpyt_examples, where there are build and test function and simple examples on simple environments like cartpole.

Do you think the usage of rlpyt in this repo is okay?

yd-yin avatar Sep 10 '20 12:09 yd-yin