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

Can RDMatrix convert to DMatrix? #249

Closed
Jeffwan opened this issue Dec 6, 2022 · 2 comments
Closed

Can RDMatrix convert to DMatrix? #249

Jeffwan opened this issue Dec 6, 2022 · 2 comments

Comments

@Jeffwan
Copy link

Jeffwan commented Dec 6, 2022

Is there an API to use to convert the two types easily? If so, any examples available?

@Yard1
Copy link
Member

Yard1 commented Dec 6, 2022

No, converting a RayDMatrix to a DMatrix would go against the purpose of the former. RayDMatrix is a wrapper around a data source that allows it to be sharded for each worker. Each of the workers then internally initializes a DMatrix from its shard of the data. If you want to modify the actual training code, refer to #248 (comment)

@Jeffwan
Copy link
Author

Jeffwan commented Dec 7, 2022

@Yard1 Thanks for the details. I will close this one now and let's discuss more details in #248

@Jeffwan Jeffwan closed this as completed Dec 7, 2022
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

No branches or pull requests

2 participants