in 3_optimization-design-ptn/03_prompt-optimization/promptwizard/glue/paramlogger/__init__.py [0:0]
def __init__(self, base_path: str = ""):
"""
:param base_path: Path where all log files would be saved
"""
self.BASE_PATH = base_path
if base_path:
makedirs(self.BASE_PATH, exist_ok=True)
# Unique `id` for a sample in dataset
self.SAMPLE_UNQ_ID = None
# This dictionary can be used, when we want to log output and input of multiple components as a single jsonl
self.CHAINED_LOG = []
# When using ParamLogger decorator over a method in a class, should we avoid logging arguement with name `self`
self.DEL_SELF_ARG = True