sjvasquez / web-traffic-forecasting

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

shift should plus 1? #13

Open wadeaikobe opened 2 years ago

wadeaikobe commented 2 years ago
    if causal:
        shift = int((convolution_width / 2) + (int(dilation_rate[0] - 1) / 2))
        pad = tf.zeros([tf.shape(inputs)[0], shift, inputs.shape.as_list()[2]])
        inputs = tf.concat([pad, inputs], axis=1)

shift may should plus 1