revise supervised learning
merge pipeline code