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

Function atisfold

code/rnnslu.py:68–76  ·  view source on GitHub ↗
(fold)

Source from the content-addressed store, hash-verified

66
67# data loading functions
68def atisfold(fold):
69 assert fold in range(5)
70 filename = os.path.join(PREFIX, 'atis.fold'+str(fold)+'.pkl.gz')
71 f = gzip.open(filename, 'rb')
72 try:
73 train_set, valid_set, test_set, dicts = pickle.load(f, encoding='latin1')
74 except:
75 train_set, valid_set, test_set, dicts = pickle.load(f)
76 return train_set, valid_set, test_set, dicts
77
78
79# metrics function using conlleval.pl

Callers 1

mainFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected