stl train and test methods impl-d