Skip to content

How to ensure the consistency of the index, during training stage and prediction stage? #306

@paulxu1314

Description

@paulxu1314

lbe = LabelEncoder()
data[feat] = lbe.fit_transform(data[feat])
example:
in traing stage, feat_1:['a', 'b', 'c']
in prediction stage, feat_1:['a', 'c', 'd']

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions