8000 Be careful if you are using this package! · Issue #27 · christophM/rulefit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Be careful if you are using this package! #27
Open
@alosha79

Description

@alosha79

Here is an example of why:

X = X.matrix()
rf.fit(X, y, feature_names=features)

The function 'fit' accepts a matrix which converts your integers to floats. Then if you have a column with integer value, for example, gender (0, 1) then the code will create the rules that don't make sense. For instance, it will create a rule 'when gender > 0.5'. But it should create 'when gender == 1' or 'when gender == 0'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0