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

[data][doc] Add DatasetConfig -> DataConfig migration guide #37278

Merged
merged 10 commits into from
Jul 13, 2023

Conversation

raulchen
Copy link
Contributor

@raulchen raulchen commented Jul 11, 2023

Why are these changes needed?

  • Add DatasetConfig -> DataConfig migration guide
  • Move ray.train.data_config to ray.train._internal.data_config

Related issue number

closes #35958

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Hao Chen <chenh1024@gmail.com>
raulchen added 3 commits July 10, 2023 17:33
Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: Hao Chen <chenh1024@gmail.com>
# __legacy_api_end__

# __new_api__
from ray.train.data_config import DataConfig
Copy link
Contributor

Choose a reason for hiding this comment

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

We should be clear here that ray.train.data_config is not a public API. All the configs should be included via ray.train directly going forward. Also see the PR description of #36706 and the REP ray-project/enhancements#36 :)

Copy link
Contributor

Choose a reason for hiding this comment

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

@ericl maybe we should rename data_config to _data_config so there are not two ways to do this and people get confused?

Copy link
Contributor

Choose a reason for hiding this comment

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

We should put it in a _internal folder then probably, to follow convention of other libraries.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, let's replace ray.train.data_config with ray.train everywhere in this PR before merging, and then we can do the _internal refactor later as time permits (doesn't need to be part of 2.6).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So I assume nothing is needed in this PR, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

It is -- you need to replace ray.train.data_config.DataConfig with ray.train.DataConfig everywhere :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, I didn't know it's already in ray.train. I think there may be other places using ray.train.data_config as well. Will update all.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, that's awesome :)

raulchen added 2 commits July 11, 2023 15:22
Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: Hao Chen <chenh1024@gmail.com>
Copy link
Contributor

@pcmoritz pcmoritz left a comment

Choose a reason for hiding this comment

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

Nice, feel free to merge if the CI passes :)

raulchen added 4 commits July 12, 2023 09:14
Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: Hao Chen <chenh1024@gmail.com>
@raulchen
Copy link
Contributor Author

@pcmoritz also moved data_config to _internal. Does this PR need to be cherry-picked to 2.6.0?

@pcmoritz
Copy link
Contributor

Thanks, that's great! Yes, it needs to be cherry-picked :)

@raulchen raulchen merged commit e233498 into ray-project:master Jul 13, 2023
@raulchen raulchen deleted the dataconfig-migration-doc branch July 13, 2023 01:02
raulchen added a commit to raulchen/ray that referenced this pull request Jul 13, 2023
…ect#37278)

- Add DatasetConfig -> DataConfig migration guide
- Move ray.train.data_config to ray.train._internal.data_config

---------

Signed-off-by: Hao Chen <chenh1024@gmail.com>
bveeramani pushed a commit that referenced this pull request Jul 13, 2023
…ide (#37383)

* [data][doc] Add DatasetConfig -> DataConfig migration guide  (#37278)

- Add DatasetConfig -> DataConfig migration guide
- Move ray.train.data_config to ray.train._internal.data_config

---------

Signed-off-by: Hao Chen <chenh1024@gmail.com>

* fix

Signed-off-by: Hao Chen <chenh1024@gmail.com>

---------

Signed-off-by: Hao Chen <chenh1024@gmail.com>
pcmoritz pushed a commit that referenced this pull request Jul 13, 2023
##37278 moved `ray.train.data_config` to `ray.train._internal.data_config`. But missed this place.
Bhav00 pushed a commit to Bhav00/ray that referenced this pull request Jul 28, 2023
…ect#37278)

- Add DatasetConfig -> DataConfig migration guide
- Move ray.train.data_config to ray.train._internal.data_config

---------

Signed-off-by: Hao Chen <chenh1024@gmail.com>
NripeshN pushed a commit to NripeshN/ray that referenced this pull request Aug 15, 2023
…ect#37278)

- Add DatasetConfig -> DataConfig migration guide
- Move ray.train.data_config to ray.train._internal.data_config

---------

Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: NripeshN <nn2012@hw.ac.uk>
NripeshN pushed a commit to NripeshN/ray that referenced this pull request Aug 15, 2023
#ray-project#37278 moved `ray.train.data_config` to `ray.train._internal.data_config`. But missed this place.

Signed-off-by: NripeshN <nn2012@hw.ac.uk>
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
…ect#37278)

- Add DatasetConfig -> DataConfig migration guide
- Move ray.train.data_config to ray.train._internal.data_config

---------

Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
#ray-project#37278 moved `ray.train.data_config` to `ray.train._internal.data_config`. But missed this place.

Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
vymao pushed a commit to vymao/ray that referenced this pull request Oct 11, 2023
…ect#37278)

- Add DatasetConfig -> DataConfig migration guide
- Move ray.train.data_config to ray.train._internal.data_config

---------

Signed-off-by: Hao Chen <chenh1024@gmail.com>
Signed-off-by: Victor <vctr.y.m@example.com>
vymao pushed a commit to vymao/ray that referenced this pull request Oct 11, 2023
#ray-project#37278 moved `ray.train.data_config` to `ray.train._internal.data_config`. But missed this place.

Signed-off-by: Victor <vctr.y.m@example.com>
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.

[data] [docs] Update docs to reflect new Data+Train API
3 participants