生成one-hot编码
来源:互联网 发布:怎么做淘宝客服教程 编辑:程序博客网 时间:2024/05/28 03:01
import numpy as npfrom sklearn import preprocessingenc = preprocessing.OneHotEncoder()microvideolabel = np.array([[0], [1], [2], [3],[4], [5], [6], [7],[8], [9], [10], [11],[12], [13], [14], [15],[16], [17], [18], [19], [20], [21],[22], [23], [24], [25],[26], [27], [28], [29], [30], [31],[32], [33], [34], [35],[36], [37], [38], [39], [40], [41],[42], [43], [44], [45],[46], [47], [48], [49], [50], [51],[52], [53], [54], [55],[56], [57], [58], [59], [60], [61],[62], [63], [64], [65],[66], [67], [68], [69], [70], [71],[72], [73], [74], [75],[76], [77], [78], [79], [80], [81],[82], [83], [84], [85],[86], [87], [88], [89], [90], [91],[92], [93], [94], [95],[96], [97], [98], [99], [100], [101],[102], [103], [104], [105],[106], [107], [108], [109], [110], [111],[112], [113], [114], [115],[116], [117], [118], [119], [120], [121],[122], [123], [124], [125],[126], [127], [128], [129], [130], [131],[132], [133], [134], [135],[136], [137], [138], [139], [140], [141],[142], [143], [144], [145],[146], [147], [148], [149], [150], [151],[152], [153], [154], [155],[156], [157], [158], [159], [160], [161],[162], [163], [164], [165],[166], [167], [168], [169], [170], [171],[172], [173], [174], [175],[176], [177], [178], [179], [180], [181],[182], [183], [184], [185],[186], [187] ])enc.fit(microvideolabel)t = np.array()print enc.transform([[1]]).toarray()
阅读全文
0 0
- 生成one-hot编码
- one-hot编码
- one-hot编码
- one-hot编码
- 关于One-hot编码
- ONE HOT 编码
- python sklearn one-hot编码
- one hot encoding/哑编码
- [数据预处理]one-hot编码
- Tensorflow学习: one-hot编码
- One-hot编码:Python sklearn CTR实验
- One-Hot Encoding独热编码
- one hot 编码及数据归一化
- one-hot coding(热独编码)
- pandas使用get_dummies进行one-hot编码
- 数据预处理——One-hot编码
- 数据预处理——One-hot编码
- 独热编码(One-Hot Encoding)
- html中一些方法
- wpf的样式与资源
- Ascii GB2312 GBK unicode UTF-8 来由和区别
- 使用Genymotion运行项目的时候出现Genymotion device supports x86, but APK only supports armeabi-v7a解决方案
- WINDOWS特殊系统路径获取方法
- 生成one-hot编码
- Okhttpinterceptor____用于打印Okhttp的请求头响应头的信息
- Laravel入门教程(二)D
- mt2503 如何使用META DLL API写两个以上IMEI
- Main
- Caffe训练、测试自己的图片数据
- 《Wide & Deep Learning for Recommender Systems》 学习记录
- 【Scikit-Learn 中文文档】交叉分解
- MVP+RxJava+Retrofit实现Banner图