May 2019
Intermediate to advanced
456 pages
11h 38m
English
As discussed in the section on backtesting, we have to make sure that our model does not suffer from look-ahead bias:

Standard convolution does not take the direction of convolution into account
As the convolutional filter slides over the data, it looks into the future as well as the past. Causal convolution ensures that the output at time t derives only from inputs from time t - 1:

Causal convolution shifts the filter in the right direction
In Keras, all we have to do is set the padding parameter to causal. We can do this ...