Code for tests and prediction
Code fixed for tests and prediction