MCPcopy
hub / github.com/babysor/MockingBird / __init__

Method __init__

encoder/preprocess.py:15–22  ·  view source on GitHub ↗
(self, root, name)

Source from the content-addressed store, hash-verified

13 Registers metadata about the dataset in a text file.
14 """
15 def __init__(self, root, name):
16 self.text_file = open(Path(root, "Log_%s.txt" % name.replace("/", "_")), "w")
17 self.sample_data = dict()
18
19 start_time = str(datetime.now().strftime("%A %d %B %Y at %H:%M"))
20 self.write_line("Creating dataset %s on %s" % (name, start_time))
21 self.write_line("-----")
22 self._log_params()
23
24 def _log_params(self):
25 from encoder import params_data

Callers

nothing calls this directly

Calls 2

write_lineMethod · 0.95
_log_paramsMethod · 0.95

Tested by

no test coverage detected