Skip to content

Commit

Permalink
Fix for C RandomForestClassifier code generation.
Browse files Browse the repository at this point in the history
Don't apply num_format conversion in RandomForestClassifier code generation for feature indices.
  • Loading branch information
Antti Pasanen committed Dec 11, 2018
1 parent f021c46 commit 43a403c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def create_single_method(self, estimator_index, estimator):
:return : string
The created method.
"""
indices = [self.repr(e) for e in estimator.tree_.feature]
indices = [str(e) for e in estimator.tree_.feature]

tree_branches = self.create_branches(
estimator.tree_.children_left, estimator.tree_.children_right,
Expand Down

0 comments on commit 43a403c

Please sign in to comment.