2018年7月19日
摘要: 用来测试的survived如下: 训练模型得到的预测结果如下: 计算预测与实际的准确率: 准确率有大约84.65%。 阅读全文
posted @ 2018-07-19 13:11 hirokuh 阅读(931) 评论(0) 推荐(0) 编辑
摘要: import pandas as pddata_forest_fires = pd.read_csv("data/forestfires.csv", encoding='gbk')data1 = pd.read_excel("data/original_data.xls", sheet_name=" 阅读全文
posted @ 2018-07-19 13:08 hirokuh 阅读(2014) 评论(0) 推荐(0) 编辑
摘要: from scipy.stats import chi2 # 卡方分布from scipy.stats import norm # 正态分布from scipy.stats import t # t分布from scipy.stats import f # F分布import matplotlib. 阅读全文
posted @ 2018-07-19 13:06 hirokuh 阅读(18621) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as pltimport numpy as np# matplotlib画图注释中文需要设置from matplotlib.font_manager import FontPropertiesxy_font_set = FontProperties( 阅读全文
posted @ 2018-07-19 13:05 hirokuh 阅读(799) 评论(0) 推荐(0) 编辑