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 :)
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 :)