Feature/convert data for predict

refactored data.py to facilitate using Learner.predict() in external applications.