Answer the question
In order to leave comments, you need to log in
Decision tree. How to decode values in a tree?
After constructing the Decision tree classifier, how to decode the values back?
Example input string
Sample string after processing LabelEncoder
LabelEncoder:
encoder = defaultdict(LabelEncoder)
data.loc[:, categorical_features] = (
data
.loc[:, categorical_features]
.apply(lambda x: encoder[x.name].fit_transform(x), axis=0)
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question