【干货书】基于统计和机器学习的实用时间序列分析预测,Time Series Analysis Prediction...

0b0c71f84f049f1e03bb2da79b6bf765.png

来源:专知
本文约为书籍,建议阅读5分钟
帮助您使用传统统计和现代机器学习技术解决时间序列中最常见的数据工程和分析挑战。

由于通过物联网、医疗数字化和智能城市的兴起,时间序列数据分析变得越来越重要。随着持续监测和数据收集变得越来越普遍,将增加使用统计和机器学习技术进行时间序列分析的需求。

本实用指南涵盖了时间序列数据分析的创新和现实世界中的用例,将帮助您使用传统统计和现代机器学习技术解决时间序列中最常见的数据工程和分析挑战。作者艾琳·尼尔森(Aileen Nielsen)以R和Python两种语言提供了一个通俗易懂、全面的时间序列介绍,将让数据科学家、软件工程师和研究人员快速启动并运行。

8209f96490486fdf115311afa476ee98.png

你学习到:

  • 查找和整理时间序列数据

  • 进行探索性的时间序列数据分析

  • 存储时态数据

  • 模拟时间序列数据

  • 为时间序列生成并选择特征

  • 测量误差

  • 用机器或深度学习对时间序列进行预测和分类

  • 评估准确性和性能

https://www.oreilly.com/library/view/practical-time-series/9781492041641/

  • Preface

  • 1. Time Series: An Overview and a Quick History

2. Finding and Wrangling Time Series Data

3. Exploratory Data Analysis for Time Series

4. Simulating Time Series Data

5. Storing Temporal Data

6. Statistical Models for Time Series

7. State Space Models for Time Series

8. Generating and Selecting Features for a Time Series

9. Machine Learning for Time Series

10. Deep Learning for Time Series

11. Measuring Error

12. Performance Considerations in Fitting and Serving Time Series Models

13. Healthcare Applications

14. Financial Applications

15. Time Series for Government

16. Time Series Packages

17. Forecasts About Forecasting

Index

b12140d2c1eb774fd8da3ea6e661e2b7.png

30cf845af559ce7f687e80e61415dc5d.png

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是 Python 代码,用于画三个 ROC 曲线,假设三组数据分别为 prediction1.csv、prediction2.csv 和 prediction3.csv,标签数据分别为 labels1.csv、labels2.csv 和 labels3.csv: ```python import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import roc_curve, auc # 读取数据 y_true1 = np.loadtxt('labels1.csv', delimiter=',') y_score1 = np.loadtxt('prediction1.csv', delimiter=',') y_true2 = np.loadtxt('labels2.csv', delimiter=',') y_score2 = np.loadtxt('prediction2.csv', delimiter=',') y_true3 = np.loadtxt('labels3.csv', delimiter=',') y_score3 = np.loadtxt('prediction3.csv', delimiter=',') # 计算 ROC 曲线和 AUC 值 fpr1, tpr1, _ = roc_curve(y_true1, y_score1) roc_auc1 = auc(fpr1, tpr1) fpr2, tpr2, _ = roc_curve(y_true2, y_score2) roc_auc2 = auc(fpr2, tpr2) fpr3, tpr3, _ = roc_curve(y_true3, y_score3) roc_auc3 = auc(fpr3, tpr3) # 画图 plt.figure(figsize=(8, 6)) plt.plot(fpr1, tpr1, label='ROC curve 1 (area = %0.2f)' % roc_auc1) plt.plot(fpr2, tpr2, label='ROC curve 2 (area = %0.2f)' % roc_auc2) plt.plot(fpr3, tpr3, label='ROC curve 3 (area = %0.2f)' % roc_auc3) plt.plot([0, 1], [0, 1], 'k--') plt.xlim([-0.05, 1.05]) plt.ylim([-0.05, 1.05]) plt.xlabel('False Positive Rate') plt.ylabel('True Positive Rate') plt.title('Receiver operating characteristic example') plt.legend(loc="lower right") plt.show() ``` 这段代码首先使用 `np.loadtxt()` 函数从文件中读取数据,然后计算了每个分类器的 ROC 曲线和 AUC 值。最后,将三个 ROC 曲线绘制在同一张图表上,方便比较它们的性能。请确保 prediction.csv 和 labels.csv 文件的格式正确,并且在正确的位置上。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值