MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / Hypothesis

Class Hypothesis

rat-sql-gap/seq2struct/beam_search.py:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7@attr.s
8class Hypothesis:
9 inference_state = attr.ib()
10 next_choices = attr.ib()
11 score = attr.ib(default=0)
12
13 choice_history = attr.ib(factory=list)
14 score_history = attr.ib(factory=list)
15
16
17def beam_search(model, orig_item, preproc_item, beam_size, max_steps, visualize_flag=False):

Callers 3

beam_searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected