预测结果分析:
# Author :Jungang_An
# Coding :utf - 8 -*-
# Time : 2019/11/4 17:20
# 读入特定行参数进行可视化对比
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
raw_data =pd.read_csv (',/001/train.csv',usecols=[4])
pred_data =pd.read_csv ('./001/submission.csv',usecols=[1])
# 初始化水平画布长度为30,高度为12像素比
plt.figure(figsize=(30, 12))
# 图名称
plt.title('ResultAnalysis')
plt.plot(raw_data, color = 'green', label = 'raw_WaterFlow')
plt.plot(pred_data, color = 'red',label = 'pred_WaterFlow' )
# 显示图像比例
plt.legend()
plt.xlabel('Id')
plt.ylabel('WaterFlow')
plt.show()
plt.savefig("1.png", dpi =600)