In the example for the convolution:
For instance, with input = [1, 0, 2, 3, 0, 1, 1] and kernel = [2, 1, 3], the result of the convolution is [8, 11, 7, 9, 4], which is calculated in the following way:
8 = 1 * 2 + 0 * 1 + 2 * 3
11 = 0 * 2 + 2 * 1 + 3 * 3
7 = 2 * 2 + 3 * 1 + 0 * 3
9 = 3 * 2 + 0 * 1 + 1 * 3
4 = 0 * 2 + 1 * 1 + 1 * 3
The correct answer is [4, 7, 8, 9, 11, 3, 6]. You can get it from the provided function (predict_step)