Ejemplo n.º 1
0
 def load_label_config(self):
     self.label_config_full = config_comments_free(open(self.label_config_path, encoding='utf8').read())
     self.label_config_line = config_line_stripped(self.label_config_full)
     self.parsed_label_config = parse_config(self.label_config_line)
     self.input_data_tags = self.get_input_data_tags(self.label_config_line)
Ejemplo n.º 2
0
 def load_label_config(self):
     self.label_config_full = config_comments_free(
         open(self.config['label_config']).read())
     self.label_config_line = config_line_stripped(self.label_config_full)
     self.parsed_label_config = parse_config(self.label_config_line)
     self.input_data_tags = self.get_input_data_tags(self.label_config_line)
Ejemplo n.º 3
0
    def validate_label_config(self, config_string):
        self.project_obj.validate_label_config(config_string)

        parsed_config = parse_config(config_string)
        self.validate_label_config_on_derived_input_schema(parsed_config)
        self.validate_label_config_on_derived_output_schema(parsed_config)
Ejemplo n.º 4
0
 def __init__(self, label_config=None, train_output=None, **kwargs):
     """Model loader"""
     self.label_config = label_config
     self.parsed_label_config = parse_config(self.label_config)
     self.train_output = train_output
Ejemplo n.º 5
0
 def __init__(self, label_config=None, train_output=None, **kwargs):
     """Model loader"""
     self.label_config = label_config
     self.parsed_label_config = parse_config(self.label_config)
     self.train_output = train_output or {}
     self.hostname = kwargs.get('hostname', '')