Adapted programs to Piton data (the training set is independent from the test set)