pytorch预测 - 时间融合变压器计算

发布于 2025-02-07 10:25:28 字数 898 浏览 1 评论 0 原文

参考教程()。

尽管“ plot_prediction ”方法正常工作,但使用“ plot_prediction_actual_by_variable()”的结果图不显示任何' prediction '或'实际'曲线。例如:

产生的绘图图像

分析 carculate_prediction_prediction_actual_by_variable_variable_variable_variabil_variabil_variable_variable_variabil_variabil_variable()方法,我意识到存在一些 nans

nans values

有人遇到这个问题吗?

referring to the tutorial (https://pytorch-forecasting.readthedocs.io/en/stable/tutorials/stallion.html) provided by Pytorch about their implementation of the Temporal Fusion Transformer, I'm trying to use their calculate_prediction_actual_by_variable() and plot_prediction_actual_by_variable() methods on a custom dataset.

Although the "plot_prediction" method works correctly, the resulting plots using "plot_prediction_actual_by_variable()" do not show any 'prediction' or 'actual' curve. E.g:

Resulting Plot Image

Analyzing the tensors produced by the calculate_prediction_actual_by_variable() method, I realized that some NaNs values are present

NaNs Values

Has anyone encountered this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文