NN sequence encoding and feed forward

The answer to the NN exercise can be found

ANN_forward_ans.py
ANN_train_ans.py