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 · 7 comments
Closed

declare output format for data matrix #49

topepo opened this issue Apr 14, 2017 · 7 comments

Comments

@topepo
Copy link
Collaborator

@topepo 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 added the enhancement label Apr 14, 2017
@topepo topepo changed the title sparse matrices declare output format for data matrix Jul 28, 2017
@topepo
Copy link
Collaborator Author

@topepo 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
Collaborator Author

@topepo 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

@jeffwong-nflx jeffwong-nflx commented Sep 19, 2017

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 added a commit that referenced this issue Nov 12, 2017
@topepo
Copy link
Collaborator Author

@topepo topepo commented Nov 12, 2017

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

@jeffwong-nflx
Copy link

@jeffwong-nflx jeffwong-nflx commented Nov 13, 2017

Thanks Max, I will take a look

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

@samyishak samyishak commented Apr 21, 2018

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
Collaborator Author

@topepo topepo commented Apr 24, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.