carpedm20 / MemN2N-tensorflow

"End-To-End Memory Networks" in Tensorflow
http://arxiv.org/abs/1503.08895v4
MIT License
829 stars 251 forks source link

How to choose/calculate context in order to get better result? #13

Open shengyuzhang opened 7 years ago

shengyuzhang commented 7 years ago

In the code of this repo, context matrix of shape [batch_size, mem_size] is chosen randomly as below m = random.randrange(self.mem_size, len(data)) target[b][data[m]] = 1 context[b] = data[m - self.mem_size:m] My quesiton (I am sorry it is not actually an 'issue' but my personal quesion) is what approaches I can take to get better result rather than just random? Any kind of material that is helpful is welcomed :)