原书出处
Machine Learning Fundamentals: Concepts, Models, and Applications
lbl_encode=LabelEncoder () lbl_encode.fit_transform (Diamond[‘cut’]) array([2, 3, 1, ..., 4, 3, 2]) Diamond[‘cut_label’]=lbl_encode.fit_transform(Diamond[“cut”]) Diamond[“cut_label”].value_counts() 2 21551 3 13791 4 12082 1 4906 0 1610 Name: cut_label, dtype: int64 Diamond[‘cut’].value_counts () Ideal 21551 Premium 13791 Very Good 12082 Good 4906
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Machine Learning Fundamentals: Concepts, Models, and Applications/_epub-src/OEBPS/xhtml/17_chapter05.xhtml
EPUB SHA-256:cd5888fc4b08a1424ddc108808de40630455d9f7e3f562ef4ee7cc2b70acad2a