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

Register special function to formula interface #71

Open
wush978 opened this issue Apr 14, 2015 · 1 comment
Open

Register special function to formula interface #71

wush978 opened this issue Apr 14, 2015 · 1 comment
Assignees
Milestone

Comments

@wush978
Copy link
Owner

wush978 commented Apr 14, 2015

Currently, the FeatureHashing supports split in the formula to split the string before generating the model matrix. Here, the split is called special in the formula according to the documentation of terms.formula.

A more general approach is to let the user register their own special in the formula interface and invoke them before generating the model matrix.

Then, the request of n-gram (#66 (comment)) could be done via register the n-gram generator to FeatureHashing.

@wush978 wush978 self-assigned this Apr 14, 2015
@wush978 wush978 added this to the CRAN v0.10 milestone Apr 14, 2015
@pommedeterresautee
Copy link
Contributor

Is there some pointer somewhere to help implement that feature?

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

No branches or pull requests

2 participants