码迷,mamicode.com
首页 >  
搜索关键字:feature selection    ( 3203个结果
13-垃圾邮件分类2
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:其他好文   时间:2020-05-23 18:16:41    阅读次数:60
13-垃圾邮件分类2
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:其他好文   时间:2020-05-23 18:08:15    阅读次数:49
13-垃圾邮件分类2
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:其他好文   时间:2020-05-23 14:55:16    阅读次数:45
13-垃圾邮件分类2
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:其他好文   时间:2020-05-23 11:42:54    阅读次数:62
13-垃圾邮件分类2
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:其他好文   时间:2020-05-23 09:42:28    阅读次数:42
13-垃圾邮件分类
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:其他好文   时间:2020-05-23 00:36:52    阅读次数:72
13-垃圾邮件分类2
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target,  ...
分类:其他好文   时间:2020-05-22 21:42:20    阅读次数:75
13-垃圾邮件分类2
1.读取 2.数据预处理 3.数据划分—训练集和测试集数据划分 from sklearn.model_selection import train_test_split x_train,x_test, y_train, y_test = train_test_split(data, target, ...
分类:其他好文   时间:2020-05-22 12:46:48    阅读次数:55
Feature Engineering 特征工程 3. Feature Generation
从原始数据创建新特征是改进模型的最佳方法之一 例如,数据有很长连续时间的,我们可以把最近一周的提取出来作为一个新的特征 1. 组合特征 最简单方法之一是组合特征 例如,如果一条记录的国家/地区为"CA",类别为"Music",则可以创建一个新值" CA_Music" 可以从所有分类特征中构建组合特征 ...
分类:其他好文   时间:2020-05-21 16:11:40    阅读次数:58
13-垃圾邮件分类2
1.读取 源代码: #读取文件 file_path=r'D:\PycharmProjects\201706120186罗奕涛\data\SMSSpamCollection' sms=open(file_path,'r',encoding='utf-8') sms_data=[] sms_label= ...
分类:其他好文   时间:2020-05-21 12:04:35    阅读次数:61
3203条   上一页 1 ... 16 17 18 19 20 ... 321 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!