Skip to content

Python simulations (obs selection, reward functions etc.) - #276

Merged
kepricon merged 44 commits into
devfrom
mp_offline_data
Mar 24, 2021
Merged

Python simulations (obs selection, reward functions etc.)#276
kepricon merged 44 commits into
devfrom
mp_offline_data

Conversation

@maxpumperla

Copy link
Copy Markdown
Contributor

No description provided.

@maxpumperla
maxpumperla requested review from kepricon and slinlee March 12, 2021 08:39
@maxpumperla

Copy link
Copy Markdown
Contributor Author

@kepricon @slinlee would be great if you could review. I had to rename the old package name to pathmind_training to make space for the pathmind simulation package. This makes the file changes a bit clumsy to view on GitHub. Might be best to check the branch out locally and run the new example from the README.

@slinlee slinlee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This enables a lot of cool stuff and I like the changes to build in support for reward terms and obs selection.

This is a basic question, but how would an end-user get access to use Simulation interface?

And for now there's no built-in way to let a user use a trained policy with their python simulation, right? We're going to build that requests to policy server, yeah?

Comment thread nativerl/python/README.md Outdated
Comment thread nativerl/python/README.md Outdated
@maxpumperla

Copy link
Copy Markdown
Contributor Author

@slinlee the reason pathmind (the new one) is now standalone is so that we can put it on PyPI and open source it, when ready. Then users can simply pip install pathmind and define their simulations. For that to work we need the web app integration ready, as pathmind should then also have an API to kick off a web app training run.

Also, you're right, we need to add glue code to make simulations work with policy server. Very good point!

Comment thread nativerl/python/setup.py Outdated
Comment thread nativerl/python/setup.py
@kepricon

Copy link
Copy Markdown
Contributor

looks good to me.
will test it from my local and push integration code with webapp in this branch(if needed).

@slinlee

slinlee commented Mar 16, 2021

Copy link
Copy Markdown
Contributor

@kepricon

will test it from my local and push integration code with webapp in this branch(if needed).

What level of integration are you planning for right now? I think the first priority will be to upload and train a simulation that includes observations and reward function already.

Later we can add the UI for 'editing the reward function'

PathmindAI/pathmind-webapp#2934

@kepricon

Copy link
Copy Markdown
Contributor

yes, my plan is exactly the same with upload and train a simulation that includes observations and reward function

@maxpumperla

Copy link
Copy Markdown
Contributor Author

@slinlee @kepricon good to go from my side now, once we get this into dev I'd like to make sure we get #262 (reward balancing) over the finish line for @brettskymind.

@kepricon

Copy link
Copy Markdown
Contributor

looks like we need to set is_gym to TRUE or NOT and is_pathmind_simulation to TRUE or NOT from train.sh depends on webapp's training request.

I think ModelAnalyzer should check if the model is valid or not and what id the type of model.
fyi, the current model analyzer use test() from run.py to just check if it is valid or not from the exit code.

@maxpumperla
can you make test() method can return the type of model?
for example, gym_single, gym_multi, pathmind_single, pathmind_multi
I believe webapp can pass environment: str and model file to test().

@slinlee slinlee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kepricon feel free to merge and deploy when you're ready. Thanks, both!

@kepricon
kepricon merged commit 8e4f786 into dev Mar 24, 2021
@kepricon
kepricon deleted the mp_offline_data branch March 24, 2021 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants