INNER CODE UNIT · Python

Config

CogStack/OpenGPT · opengpt/config.py:62

class Config(BaseConfig):
    r''' There are probably nicer ways to do this, but I like this one.
    '''
    def __init__(self, yaml_path):
        self.yaml_path = yaml_path
        self.load_yaml(yaml_path)

    def reload_yaml(self):
        self.load_yaml(self.yaml_path)

    def load_yaml(self, yaml_path):
        _config = yaml.safe_load(open(yaml_path, 'r'))
        self.to_box = True
        self.base_path = './'
        self.datasets = {}
        self.name = 'opengpt'

        for k,v in _config.items():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…