Open
Description
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
Labels
No labels