sjvasquez / web-traffic-forecasting

Kaggle | Web Traffic Forecasting 📈
666 stars 239 forks source link

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

Open songquanwang opened 5 years ago

songquanwang commented 5 years ago

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

blablahaha commented 5 years ago

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