12 2018 档案
摘要:#导入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...
阅读全文
摘要: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') # 将数据分别存入数据列表和目标分类列表...
阅读全文