def getData(self, filename, shuffle = True):
        dataset = data.loadSVMLight(filename)

        if shuffle:
            random.shuffle(dataset)

        return dataset
Esempio n. 2
0
    def getData(self, filename):
        dataset = data.loadSVMLight(filename)

        random.seed(1)
        random.shuffle(dataset)

        return dataset