MCPcopy Create free account
hub / github.com/OpenBMB/DecT / get_test_labels_only

Method get_test_labels_only

src/process_data.py:174–177  ·  view source on GitHub ↗
(data_dir, dirname)

Source from the content-addressed store, hash-verified

172
173 @staticmethod
174 def get_test_labels_only(data_dir, dirname):
175 label_file = open(os.path.join(data_dir,dirname,"{}_labels.txt".format('test')),'r')
176 labels = [int(x.strip()) for x in label_file.readlines()]
177 return labels
178
179class YahooProcessor(DataProcessor):
180 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected