execute predict and train from anywhere
added test script