MCPcopy Create free account
hub / github.com/chinawithfrank/ChatBotCourse / get_sample

Method get_sample

lstm_code/nicodjimenez/test2.py:31–35  ·  view source on GitHub ↗
(self, x_dim, y_dim, index)

Source from the content-addressed store, hash-verified

29 self.primes.append(i)
30 self.primes_count = len(self.primes)
31 def get_sample(self, x_dim, y_dim, index):
32 result = np.zeros((x_dim+y_dim))
33 for i in range(index, index + x_dim + y_dim):
34 result[i-index] = self.primes[i%self.primes_count]/100.0
35 return result
36
37
38def example_0():

Callers 1

example_0Function · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected