add sample set and test set division function

(def create_sample_test_collection(self, rate=0.8))