Build tree classifier on sampled data