allow is_test flag
refactor test
refactor test
add reset sample statistic
make new dir for each learning
bug fix, typo type of svm step
store docs object in prediction