Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add action space to model #4210

Merged
merged 159 commits into from
Mar 10, 2019
Merged

Conversation

stefanpantic
Copy link
Contributor

What do these changes do?

  • Added action space to TensorFlow model class
  • Model.get_model now takes an aditional argument action_space which is the target gym env action space.

Aleksandar Milovanović and others added 30 commits January 23, 2019 17:59
* Started unifying IMPALA Vtrace implementations so that they are action space agnostic

* Made VTrace work with both vector and discrete actions

* Cleaned up code

* Misc changes

* Removed tf.squeeze

* Reformat long line

* Changed condition

* Removed #noinspections

* Removed .pep8 config

* Changed model and behaviour dist

* Removed condition

* Changed log condition

* Changed ' to "

* Moved unstack outside of distribution for consistency
* Add support for gym.spaces.multi_discrete.MultiDiscrete action space to IMPALA

* Fixed shape error

* Removed output_hidden_shape

* Removed _is_multi_discrete boolean

* Remove action dtype

* Moved line outside of if
# Conflicts:
#	python/ray/rllib/agents/agent.py
* added entangled env

* improved entangled env
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/12429/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/12430/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/12432/
Test FAILed.

Copy link
Contributor

@ericl ericl left a comment

Choose a reason for hiding this comment

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

Looks good. I pushed a change to satisfy the linter (scripts/format.sh)

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/12442/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/12609/
Test FAILed.

@ericl
Copy link
Contributor

ericl commented Mar 6, 2019

jenkins retest this please

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/12625/
Test FAILed.

@ericl
Copy link
Contributor

ericl commented Mar 7, 2019

Looks like you missed a spot:

Traceback (most recent call last):
File "/ray/python/ray/rllib/tests/../examples/custom_loss.py", line 96, in
"input_files": args.input_files,
File

@stefanpantic
Copy link
Contributor Author

@ericl Fixed

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/12663/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/12665/
Test FAILed.

@ericl ericl merged commit 36cbde6 into ray-project:master Mar 10, 2019
@nikola-j nikola-j deleted the add-action-space-to-model branch March 27, 2019 09:53
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.

5 participants