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

[rllib] Write magic methods for SampleBatch/PartialRollout #2024

Merged
merged 1 commit into from
May 17, 2018

Conversation

alok
Copy link
Contributor

@alok alok commented May 9, 2018

What do these changes do?

Everybody loves that sweet sweet (syntactic) sugar.

Since we typically care about the .data attribute, but may not want to just
subclass dict (I assume), we can use dict's already implemented magic methods
to clean up syntax. These let us just treat rollouts more or less as dicts.

Related issue number

Replacement for PR #2002. Simply branched from current master and applied last
PR, but without any formatting changes.

Some nice syntactic sugar.
@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/5300/
Test FAILed.

@richardliaw
Copy link
Contributor

jenkins retest this please

Copy link
Contributor

@richardliaw richardliaw left a comment

Choose a reason for hiding this comment

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

lgtm

@AmplabJenkins
Copy link

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

@richardliaw richardliaw changed the title Write magic methods for SampleBatch/PartialRollout [rllib] Write magic methods for SampleBatch/PartialRollout May 14, 2018
@richardliaw richardliaw self-assigned this May 14, 2018
@robertnishihara
Copy link
Collaborator

This is probably mergeable now, right?

@alok
Copy link
Contributor Author

alok commented May 16, 2018

I'm using it in a few other local branches and it works fine. It passes the tests it modified anyway.

@richardliaw richardliaw merged commit c0e4c9d into ray-project:master May 17, 2018
@richardliaw
Copy link
Contributor

Thanks! merged.

alok added a commit to alok/ray that referenced this pull request May 18, 2018
* master: (22 commits)
  [xray] Fix bug in updating actor execution dependencies (ray-project#2064)
  [DataFrame] Refactor __delitem__ (ray-project#2080)
  [xray] Better error messaging when pulling from self. (ray-project#2068)
  Use source code in hash where possible (fix ray-project#2089) (ray-project#2090)
  Functions for flushing done tasks and evicted objects. (ray-project#2033)
  Fix compilation error for RAY_USE_NEW_GCS with latest clang. (ray-project#2086)
  [xray] Corrects Error Handling During Push and Pull. (ray-project#2059)
  [xray] Sophisticated task dependency management (ray-project#2035)
  Support calling positional arguments by keyword (fix ray-project#998) (ray-project#2081)
  [DataFrame] Improve performance of iteration methods (ray-project#2026)
  [DataFrame] Implement to_csv (ray-project#2014)
  [xray] Lineage cache only requests notifications about remote parent tasks (ray-project#2066)
  [rllib] Add magic methods for rollouts (ray-project#2024)
  [DataFrame] Allows DataFrame constructor to take in another DataFrame (ray-project#2072)
  Pin Pandas version for Travis to 0.22 (ray-project#2075)
  Fix python linting (ray-project#2076)
  [xray] Fix GCS table prefixes (ray-project#2065)
  Some tests for _submit API. (ray-project#2062)
  [rllib] Queue lib for python 2.7 (ray-project#2057)
  [autoscaler] Remove faulty assert that breaks during downscaling, pull configs from env (ray-project#2006)
  ...
@alok alok deleted the magic branch May 21, 2018 09:46
@alok alok restored the magic branch May 21, 2018 10:03
@alok alok deleted the magic branch June 1, 2018 05:24
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