MCPcopy Create free account
hub / github.com/pytorch/tutorials / randomTrainingPair

Function randomTrainingPair

intermediate_source/char_rnn_generation_tutorial.py:198–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197# Get a random category and random line from that category
198def randomTrainingPair():
199 category = randomChoice(all_categories)
200 line = randomChoice(category_lines[category])
201 return category, line
202
203
204######################################################################

Callers 1

randomTrainingExampleFunction · 0.85

Calls 1

randomChoiceFunction · 0.85

Tested by

no test coverage detected