How to evaluate actors trained in custom environments in rllib (Ray)?How to draw pixels for ray-tracing in C++?LWJGL - How to trace a ray effectively and efficiently?How to do a Ray/Direction 2D system?How large data can Python Ray handle?Ray: How to run many actors on one GPU?How to do the inference on carla after training on Ray cluster?How to make an actor do two things simultaneously?How to set up ray project autoscaling on GCPHow can I use the python logging in Ray?Should I set `inter_op_parallelism_threads` and `intra_op_parallelism_threads` to 1 when I use ray to create a actor?
Do I have to mention my main character's age?
Why do the top heroes in Boku no Hero Academia only come from Japan?
How old is the Italian word "malandrino"?
Stella and the president's secret notes
How to help my daughter fairly
Is it better to merge "often" or only after completion do a big merge of feature branches?
How deep is the Underdark? What is its max and median depth?
Did the 1202 error and associated reboot prevent disaster on Apollo 11 landing?
Book in which the "mountain" in the distance was a hole in the flat world
Is it better to have a 10 year gap or a bad reference?
What is the metal bit in the front of this propeller spinner?
On a Gameboy, what happens when attempting to read/write external RAM while RAM is disabled?
Quickest way to move a line in a text file before another line in a text file?
Do I care if the housing market has gone up or down, if I'm moving from one house to another?
Is there an English word to describe when a sound "protrudes"?
What happens to a permanent I gained control over using Agent of Treachery, and I leave a multiplayer game?
Brute-force the switchboard
Why is DC so, so, so Democratic?
Pass USB 3.0 connection through D-SUB connector
Finding Greatest Common Divisor using LuaLatex
ADC Calibration - Vdd calculation
What is the intuition for higher homotopy groups not vanishing?
Does observational data need further proof?
What does a Nintendo Game Boy do when turned on without a game cartridge inserted?
How to evaluate actors trained in custom environments in rllib (Ray)?
How to draw pixels for ray-tracing in C++?LWJGL - How to trace a ray effectively and efficiently?How to do a Ray/Direction 2D system?How large data can Python Ray handle?Ray: How to run many actors on one GPU?How to do the inference on carla after training on Ray cluster?How to make an actor do two things simultaneously?How to set up ray project autoscaling on GCPHow can I use the python logging in Ray?Should I set `inter_op_parallelism_threads` and `intra_op_parallelism_threads` to 1 when I use ray to create a actor?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Following the SimpleCorridor example I can create my own env and train a model! nice. But when I try to evaluate this trained model, rllib does not recognize my custom env.
How can I evaluate a trained model on a custom environment?
When I use rllib rollout ... like its suggested here it does not recognize my env because it's custom one. I was hoping to have a function like run_experiments but like evaluate_experiment so I can call it on my project inside one of my files.
Thats the issue.
If you want to see my custon_env is this one
Right now I'm having to copy my environment and paste it inside the gym/envs/ package directory and register it in the __init__.py file.
Would be good to see another way to do this
Thanks
ray
add a comment |
Following the SimpleCorridor example I can create my own env and train a model! nice. But when I try to evaluate this trained model, rllib does not recognize my custom env.
How can I evaluate a trained model on a custom environment?
When I use rllib rollout ... like its suggested here it does not recognize my env because it's custom one. I was hoping to have a function like run_experiments but like evaluate_experiment so I can call it on my project inside one of my files.
Thats the issue.
If you want to see my custon_env is this one
Right now I'm having to copy my environment and paste it inside the gym/envs/ package directory and register it in the __init__.py file.
Would be good to see another way to do this
Thanks
ray
add a comment |
Following the SimpleCorridor example I can create my own env and train a model! nice. But when I try to evaluate this trained model, rllib does not recognize my custom env.
How can I evaluate a trained model on a custom environment?
When I use rllib rollout ... like its suggested here it does not recognize my env because it's custom one. I was hoping to have a function like run_experiments but like evaluate_experiment so I can call it on my project inside one of my files.
Thats the issue.
If you want to see my custon_env is this one
Right now I'm having to copy my environment and paste it inside the gym/envs/ package directory and register it in the __init__.py file.
Would be good to see another way to do this
Thanks
ray
Following the SimpleCorridor example I can create my own env and train a model! nice. But when I try to evaluate this trained model, rllib does not recognize my custom env.
How can I evaluate a trained model on a custom environment?
When I use rllib rollout ... like its suggested here it does not recognize my env because it's custom one. I was hoping to have a function like run_experiments but like evaluate_experiment so I can call it on my project inside one of my files.
Thats the issue.
If you want to see my custon_env is this one
Right now I'm having to copy my environment and paste it inside the gym/envs/ package directory and register it in the __init__.py file.
Would be good to see another way to do this
Thanks
ray
ray
asked Mar 26 at 13:05
Lucas DraichiLucas Draichi
14 bronze badges
14 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can copy the rollout.py script and modify it to register any custom envs or models in the start of the script. That will allow it to work with any envs not on gym already.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55357909%2fhow-to-evaluate-actors-trained-in-custom-environments-in-rllib-ray%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can copy the rollout.py script and modify it to register any custom envs or models in the start of the script. That will allow it to work with any envs not on gym already.
add a comment |
You can copy the rollout.py script and modify it to register any custom envs or models in the start of the script. That will allow it to work with any envs not on gym already.
add a comment |
You can copy the rollout.py script and modify it to register any custom envs or models in the start of the script. That will allow it to work with any envs not on gym already.
You can copy the rollout.py script and modify it to register any custom envs or models in the start of the script. That will allow it to work with any envs not on gym already.
answered Mar 26 at 21:43
EricEric
16
16
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55357909%2fhow-to-evaluate-actors-trained-in-custom-environments-in-rllib-ray%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown