Skip to content

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

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']

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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