Example #1
0
 def compile_puzzle(generator, puzzle):
     return make_puzzle_matrix([(puzzle, -1)], generator.get_vocab())
Example #2
0
 def __init__(self, puzzles, vocab):
     #self.puzzles = puzzles
     self.evidence_matrix = make_puzzle_matrix(puzzles, vocab)
     self.response_vector = make_puzzle_targets(
         [label for (_, label) in puzzles])
Example #3
0
 def __init__(self, puzzles, vocab):
     self.vocab = vocab
     self.evidence_matrix = make_puzzle_matrix(puzzles, vocab)
     self.response_vector = make_puzzle_targets(
         [label for (_, label) in puzzles])
     self.num_choices = 5