Skip to content

Integrate with formula #32

Open
Open

Description

@wush978

Hi, I just notice your work on stackoverflow.

Do you like to integrate the feature of expanding into formula? I have a prototype package to do this:

https://github.com/wush978/FeatureHashing

In this prototype package, I implemented an API so that:

library(FeatureHashing)
data1 <- data.frame(a = c("1,2,3", "2,3,3", "1,3", "3"), type = c("a", "b", "a", "a"), stringsAsFactors = FALSE)
interpret.tag( ~ tag(a, split = ",", type = "existence") + tag(a, split = ",", type = "count"):type, data = data1)

will produces a data.frame with expanded columns and a expanded formula to run some advaced model such as lm.

Do you want to integrate this feature?


Moreover, I notice that this way will consume lots of memory, so I am wondering if there is a way to directly convert such data.frame to sparse matrix directly. I am still working on this.

Activity

  1. mrdwab commented on Oct 25, 2014

    @mrdwab
    Owner

    @wush978, that looks like great work. I'll try to look over your package in the next few days as I'm travelling at the moment.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions