Todd Lyu

Results 39 comments of Todd Lyu

I have the same problem. My code and account has not been modified. Last month, they worked well, but today it does not work, and notice me "Invalid signature for...

我是部署在我自己的服务器上了。。

> Both Nginx and Apache HTTP Server are suitable options. If you don't know how to set them up, feel free to ask the chatbot for assistance. ok, got it,...

直接用宝塔,有专门的设置界面,很容易的

我手上没有,现在在搞别的东西,这个的模型文件没保存

在训练的时候,Teacher Forcing这种做法应该是没问题的,我没记错的话,《Attention is All You Need》也是这么做的。但是严格来说,在推理的时候,使用Teacher Forcing就不太合理了。在我写的模型里面,应该已经避免了这些问题。。回头我再检查下

> 感谢您的回答。我还没有完全看懂您的transformer的实现逻辑。我是用过在predict.py进行test时,这行代码outputs = model.forward(data, label, int(args.predict_days))处,把label替换成随机数进行验证的,结果预测值也变成了随机游走。所以我推测label影响了预测值。 label不能替换为随机值,你可以看看Stock_Data类,data和label都是从这里面出来的

> 我看了一遍逻辑,找到了问题哈。transformer中的tgt输入,应该是进行右移一位的处理,第一位用其他向量补齐。如果不右移的话,那么就相当于,用T+1天的数据去预测T+1天的数据,就不是预测了。对于predict_days>0的情况,也应该使用掩码mask掉,否则就会出现未来参数。相当于用T+1、T+2、T+3去预测T+1天的数据了。 我没有右移吗?淦,我去查一下

能把环境说明一下吗?我这里几台机器都没有这样的问题