波兰COVID-19数据集

波兰COVID-19时间序列数据集,包含新病例、测试数等参数,用于多变量预测建模。

mkdirermkdirer
GitHub
2023-12-11 更新
浏览 15
时间序列keras-tensorflowmatplotlibneural-networknumpypandassklearnCOVID-19
COVID-19 dataset in Poland

基本信息

模态
时间序列
大小
0.005311 GB
创建/更新时间
2023-12-11
版本
main

资源简介

波兰COVID-19数据集

【数据集背景】

本数据集源站标题为《mkdirer/Multivariate-Time-Series-Forecasting-Using-Transformers》。源站首次发布:2023-09-26。

【数据内容】

源站原始描述:This project develops a Transformers-based neural network for modeling and forecasting multivariate time series data from a COVID-19 dataset in Poland. The implementation is in Python, utilizing the Keras library for neural network design and training, along with numpy, pandas, matplotlib, and sklearn for data analysis and model evaluation. # Multivariate Time Series Forecasting Using Transformers ## Authors: - Łukasz Wajda - Michał Orlewski - Przemysław Rewiś ## Project Description: This projec…

【主题与分类】

主题标签:keras-tensorflow、matplotlib、neural-network、numpy、pandas、sklearn。

【适用方向】

时序数据适用于疾病进展预测、生理信号监测与事件发生的时序建模。

【获取与许可】

源站页面:https://github.com/mkdirer/Multivariate-Time-Series-Forecasting-Using-Transformers

【使用注意】

· 源站最后修改于 2025-04-16,引用时请注意版本时效。

官方服务

专家保障全链路合规授权与标注交付

陕川双基地 × 超十家三甲医院直连

从合规授权、采集治理、专业标注到数据集交付,我们提供全链路闭环服务,让高质量临床数据即拿即用。

⚡️ 需要原始数据或标注支持?联系我们获取定制方案。

帮我联系

下载信息

注册下载

需要注册 Kaggle 账号并登录后下载,适合需要跟踪下载记录和使用 API 的用户。

暂未开放

公开下载

无需注册即可直接获取公开样本或文档,适合快速预览和评估数据集质量。

免登录

有偿下载

公开数据集受托下载与技术交付服务。

提供高速下载与技术交付服务(收技术服务费,非数据销售)

暂未开放

当前数据集主要来源为 Kaggle 公开托管,完整影像包建议通过原始链接或 Kaggle API 获取。

使用方式

数据集获取

git clone https://github.com/mkdirer/Multivariate-Time-Series-Forecasting-Using-Transformers.git

curl -L -o repo.zip https://github.com/mkdirer/Multivariate-Time-Series-Forecasting-Using-Transformers/archive/refs/heads/main.zip
unzip repo.zip

源站 README 摘录(使用方式)

Multivariate Time Series Forecasting Using Transformers

Authors:

  • Łukasz Wajda
  • Michał Orlewski
  • Przemysław Rewiś

Project Description:

This project focuses on developing a Transformers-based neural network for modeling and forecasting multivariate time series data using a dataset related to COVID-19 in Poland. The entire project was implemented in Python using the Keras library for defining and training the neural network, as well as numpy, pandas, matplotlib, and sklearn for data analysis and model evaluation.

Data Preparation:

After an initial review of the dataset, specific parameters such as new cases, total tests conducted, new recoveries, and active cases were chosen as the data for modeling. Data preprocessing was performed, including removing unnecessary columns, handling missing data, and scaling the data using Min-Max Scaler.

Model Architecture:

The model utilizes the Transformers architecture and consists of several key components, including the Time2Vector layer for encoding time information, self-attention mechanisms (SingleAttention and MultiAttention) for capturing dependencies between data points, and a TransformerEncoder for integrating all these elements.

Data Splitting Methods:

Three different data splitting methods were employed in the project:

  • K-Fold Cross Validation: Splitting data into folds and training the model on different data subsets.
  • Time Series Split: Accounting for the temporal order of data when splitting into training and test sets.
  • Blocking Time Series Split: Considering data blocks with similar patterns.

Model Evaluation:

For each data splitting method, the model was evaluated using various metrics such as Mean Squared Error (MSE), Mean Absolute Error (MAE), Coefficient of Determination (R^2), Index of Agreement, and Mean Absolute Percentage Error (MAPE). These metric results aided in assessing the model’'s quality and selecting the appropriate data splitting method.

Model Training:

The final version of the model was trained using properly prepared training, validation, and test data. The model was trained for 50 epochs, saving the best version based on validation data performance.

Summary and Conclusions:

The project focused on comparing the performance of Transformers and LSTM networks in forecasting multivariate time series data. The results indicate that Transformers are more flexible

数据加载示例(表格/文本类)

import pandas as pd, glob, os

files = (glob.glob(os.path.join(path, "**", "*.csv"), recursive=True)
       + glob.glob(os.path.join(path, "**", "*.tsv"), recursive=True)
       + glob.glob(os.path.join(path, "**", "*.xlsx"), recursive=True))
print("数据文件:", files)
df = pd.read_csv(files[0])
print(df.shape); print(df.columns.tolist()); print(df.head(3))

完整仓库:github.com/mkdirer/Multivariate-Time-Series-Forecasting-Using-Transformers

数据缺失?

依托陕西、四川两大基地,我们与超过十家三甲医院建立直接合作关系,覆盖合规授权、采集治理、专业标注、数据交付的全流程,为AI医疗团队提供即拿即用的高质量临床数据。

⚡️ 需要数据支持或标注服务?立即联系我们获取专业方案。

获取专属数据定制方案