fit_transform() takes 2 positional arguments but 3 were given with LabelBinarizer

前端 未结 13 1984
时光取名叫无心
时光取名叫无心 2020-12-07 16:35

I am totally new to Machine Learning and I have been working with unsupervised learning technique.

Image shows my sample Data(After all Cleaning) Screenshot : Sample

13条回答
  •  感动是毒
    2020-12-07 16:45

    Forget LaberBinarizer and use OneHotEncoder instead.

    In case you use a LabelEncoder before OneHotEncoder to convert categories to integers, you can now use the OneHotEncoder directly.

提交回复
热议问题