def getData(self, filename, shuffle = True): dataset = data.loadSVMLight(filename) if shuffle: random.shuffle(dataset) return dataset
def getData(self, filename): dataset = data.loadSVMLight(filename) random.seed(1) random.shuffle(dataset) return dataset