12 2018 档案

摘要:2、boston房价预测 结果: 阅读全文
posted @ 2018-12-21 12:49 MIEhaha 阅读(221) 评论(0) 推荐(0) 编辑
摘要:#导入boston房价数据集 from sklearn.datasets import load_boston import numpy as np boston = load_boston() boston.keys() boston.target import pandas as pd df = pd.DataFrame(boston.data) df from sklearn.linea... 阅读全文
posted @ 2018-12-09 18:19 MIEhaha 编辑
摘要:import csv # 读数据 file_path = r'EmailData.txt' EmailData = open(file_path,'r',encoding='utf-8') Email_data = [] Email_target = [] csv_reader = csv.reader(EmailData,delimiter='\t') # 将数据分别存入数据列表和目标分类列表... 阅读全文
posted @ 2018-12-02 21:11 MIEhaha 阅读(217) 评论(0) 推荐(0) 编辑