Skip to content

Register special function to formula interface #71

@wush978

Description

@wush978

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.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions