now predicts with compressed transactions features. added training and predicting code. refactored.