vec = DictVectorizer() #初始化DictVectorizer特征抽取器. print(vec.fit_transform(measurements).toarray()) #输出转化之后的特征矩阵.
確定! 回上一頁