Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Beam search? #28
Currently, we are using weighted_pick to select outputs:
def weighted_pick(weights): t = np.cumsum(weights) s = np.sum(weights) return(int(np.searchsorted(t, np.random.rand(1)*s)))
Should we also add beam search as an option?
See beam search implementations in Tensorflow tensorflow/tensorflow#654!