def setUp(self):
    (self.n, self.maxD, self.epochs) = (16, 8, 20)
    (self.factFile, trainFile, testFile) = expt.genInputs(self.n)
    self.db = matrixdb.MatrixDB.loadFile(self.factFile)
    self.prog = program.Program.loadRules('grid.ppr', self.db)
    self.trainData = dataset.Dataset.loadExamples(self.prog.db, trainFile)
    self.testData = dataset.Dataset.loadExamples(self.prog.db, testFile)
def setUp(self):
    (self.n, self.maxD, self.epochs) = (16, 8, 20)
    (self.factFile, trainFile, testFile) = expt.genInputs(self.n)
    self.db = matrixdb.MatrixDB.loadFile(self.factFile)
    self.prog = program.Program.loadRules('grid.ppr', self.db)
    self.trainData = dataset.Dataset.loadExamples(self.prog.db, trainFile)
    self.testData = dataset.Dataset.loadExamples(self.prog.db, testFile)