def compile_puzzle(generator, puzzle): return make_puzzle_matrix([(puzzle, -1)], generator.get_vocab())
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])
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