MATLAB: Neural Network’s output reduce 2 samples

Deep Learning Toolboxneural networktarget

If I input N samples as target after learning process it produces (N-2) samples. Why it reduces 2 samples.

Best Answer

If you are using a time series net with 2 input and/or feedback delays, then this is to be expected.
Otherwise, there is probably something wrong.
Post your code.
Hope this helps.
Thank you for formally accepting my answer
Greg