def loadData(self, fname):
        self.filename = fname
        if fname.find('.mat') >= 0:
            self.loadMATdata(fname)
        elif fname.find('.svm') >= 0:
            self.loadSVMdata(fname)
        else:
            # dataset consists of raw ascii columns
            self.loadRawData(fname)
decide which format the data is in
dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/svmdata.py/SVMData.loadData