MCPcopy Index your code
hub / github.com/lisa-lab/DeepLearningTutorials / train

Method train

code/rnnslu.py:231–238  ·  view source on GitHub ↗
(self, x, y, window_size, learning_rate)

Source from the content-addressed store, hash-verified

229 # end-snippet-7
230
231 def train(self, x, y, window_size, learning_rate):
232
233 cwords = contextwin(x, window_size)
234 words = list(map(lambda x: numpy.asarray(x).astype('int32'), cwords))
235 labels = y
236
237 self.sentence_train(words, labels, learning_rate)
238 self.normalize()
239
240 def save(self, folder):
241 for param in self.params:

Callers 1

mainFunction · 0.95

Calls 1

contextwinFunction · 0.85

Tested by

no test coverage detected