MCPcopy Create free account
hub / github.com/AlayaLab/Hive / append

Method append

models/audiosep/utils.py:214–219  ·  view source on GitHub ↗
(self, steps, statistics, split, flush=True)

Source from the content-addressed store, hash-verified

212 self.statistics_dict = {"balanced_train": [], "test": []}
213
214 def append(self, steps, statistics, split, flush=True):
215 statistics["steps"] = steps
216 self.statistics_dict[split].append(statistics)
217
218 if flush:
219 self.flush()
220
221 def flush(self):
222 pickle.dump(self.statistics_dict, open(self.statistics_path, "wb"))

Callers 15

mainFunction · 0.45
separate_flowsepFunction · 0.45
get_siblingsMethod · 0.45
load_tar_file_wrapperFunction · 0.45
process_nmix_directoryFunction · 0.45
process_json_fileFunction · 0.45
process_single_metadataFunction · 0.45
find_all_json_filesFunction · 0.45
clean_incomplete_tarsFunction · 0.45

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected