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 python api to slice columns in DMatrix #9620

Closed
wants to merge 1 commit into from

Conversation

rongou
Copy link
Contributor

@rongou rongou commented Sep 29, 2023

Expose the C++ DMatrix.SliceCol() method in Python, mostly for testing purposes.

@trivialfis
Copy link
Member

trivialfis commented Sep 29, 2023

If we were to focus on in-memory inputs, can we slice the input directly? I really want to keep the DMatrix as simple as possible.

@rongou
Copy link
Contributor Author

rongou commented Sep 29, 2023

Yeah I think we can try to slice the scipy matrix directly, but probably need better support for the in-memory types first. Will work on that.

@rongou rongou closed this Sep 29, 2023
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.

2 participants