Get training set

the script which can be used to get the given percentage input data set