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

declare output format for data matrix #49

Closed
topepo opened this issue Apr 14, 2017 · 8 comments
Closed

declare output format for data matrix #49

topepo opened this issue Apr 14, 2017 · 8 comments

Comments

@topepo
Copy link
Member

topepo commented Apr 14, 2017

Until there is a sparse tibble (I hope one day), there should be an option for process to convert the output to a sparse matrix format such as Matrix::dgCMatrix. See vignette("Intro2Matrix")

@topepo topepo changed the title sparse matrices declare output format for data matrix Jul 28, 2017
@topepo
Copy link
Member Author

topepo commented Jul 28, 2017

A better option would be for bake and juice to have a format argument that defaults to "tibble" but could be "matrix", "dgCMatrix", or others.

@topepo
Copy link
Member Author

topepo commented Jul 28, 2017

A check for all of the same data type would need to occur for matrix and spare matrix formats. The summary method along with the selectors should make this easy.

@jeffwong-nflx
Copy link

Being able to output a sparse matrix would be hugely valueable! My research uses a lot of categorical variables, so I can benefit a lot from sparse matrices. Thanks!

@topepo
Copy link
Member Author

topepo commented Nov 12, 2017

@jeffwong-nflx Take a look at this and see if it fits your needs.

@jeffwong-nflx
Copy link

Thanks Max, I will take a look

@topepo topepo closed this as completed Nov 19, 2017
@samyishak
Copy link

This feature is fantastic! Is there a way to specify that a recipe object outputs a sparse matrix when using caret:::train.recipe?

@topepo
Copy link
Member Author

topepo commented Apr 24, 2018

Unfortunately, no. I'm loath to add another argument to trainControl.

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants