当前位置:网站首页>时空预测3-graph transformer
时空预测3-graph transformer
2022-07-04 21:03:00 【YueTann】
任务
预测未来的风电功率
数据
每个样本包括seq_x作为输入,seq_y作为标签
- 读取数据csv
- 前处理,raw_df, new_df增加了时间、周几的信息,去掉了tmstamp、day等信息
- 截取seq_x和seq_y,以new_df为基准,根据index选取history和predict
- 建立graph
图
通过np.corrcoef和np.where构图
np.corrcoef计算各个节点的相关性,134 * 134
np.argpartition计算每个节点最相关的5个对应的index
模型
模型结合graph和autoformer
参考
- https://github.com/PaddlePaddle/PGL/tree/main/examples/kddcup2022/wpf_baseline
- https://keras.io/examples/graph/gat_node_classification/
边栏推荐
猜你喜欢
如何借助自动化工具落地DevOps
Jerry added the process of turning off the touch module before turning it off [chapter]
At the right time, the Guangzhou station of the city chain science and Technology Strategy Summit was successfully held
Analysis of maker education technology in the Internet Era
案例分享|金融业数据运营运维一体化建设
How was MP3 born?
Billions of citizens' information has been leaked! Is there any "rescue" for data security on the public cloud?
【活动早知道】LiveVideoStack近期活动一览
How to implement Devops with automatic tools
Redis 排查大 key 的3种方法,优化必备
随机推荐
OMS系统实战的三两事
历史最全混合专家(MOE)模型相关精选论文、系统、应用整理分享
解决异步接口慢导致的数据错乱问题
Use of redis publish subscription
[leetcode] 17. Letter combination of telephone number
Jerry's ad series MIDI function description [chapter]
A quick start to fastdfs takes you three minutes to upload and download files to the ECS
改善机器视觉系统的方法
案例分享|金融业数据运营运维一体化建设
How was MP3 born?
ArcGIS 10.2.2 | solution to the failure of ArcGIS license server to start
每日一题-LeetCode556-下一个更大元素III-字符串-双指针-next_permutation
EhLib 数据库记录的下拉选择
Application practice | Shuhai supply chain construction of data center based on Apache Doris
每日一题-LeetCode1200-最小绝对差-数组-排序
Hash table
Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
Golang interview finishing three resumes how to write
IIC (STM32)
【C语言】符号的深度理解