其他分享
首页 > 其他分享> > 日常笔记(20191005

日常笔记(20191005

作者:互联网

1.函数传递过程中,参数前的单星号代表任意数量的参数,双星号代表dict与参数之间的转换;形参带星号代表将多余的实参整合到该形参里,实参带星号代表将该参数分解传递

2.LabelEcoder:将参数编码为[0, n-1]范围的数字

from sklearn.preprocessing import LabelEncoder
le = LabelEncoder()
le.fit([1,5,67,100])
le.transform([1,1,100,67,5])

 

标签:LabelEncoder,le,20191005,星号,笔记,参数,日常,67,实参
来源: https://www.cnblogs.com/wa007/p/11624119.html