web-traffic-forecasting icon indicating copy to clipboard operation
web-traffic-forecasting copied to clipboard

cnn.py line260 queue_begin_time = self.encode_len - dilation - 1

Open songquanwang opened this issue 5 years ago • 1 comments

I think the code in this line should be self.encode_len - dilation . for example [0,1,2,3,4,5,6,7,8,9] dilation=4 idx=10-4=6 , slices = tf.reshape(tf.gather_nd(conv_input, idx), (batch_size, dilation, shape(conv_input, 2)))

should be [6,7,8,9] .(the last dilation of th seq).or you will loss the last day value

songquanwang avatar Apr 19 '19 07:04 songquanwang

If dilation=4, the last input should be [5, 6, 7, 8, 9]

blablahaha avatar Jul 22 '19 09:07 blablahaha