Exemplo n.º 1
0
    def post_init(self):
        """
        Check config dict for correctness and raise

        Returns:
        """
        if self.strict:
            utils.check_config_dict(self.__class__.__name__, self.config)
Exemplo n.º 2
0
 def __init__(self, config: Dict) -> None:
     self.module1 = ModuleTestConfig(config.pop("module1"))
     self.module2 = ModuleTestConfig(config.pop("module2"))
     check_config_dict("network", config)
Exemplo n.º 3
0
 def __init__(self, config: Dict) -> None:
     self.layers = config.pop("layers")
     self.units = config.pop("units")
     check_config_dict("module", config)
Exemplo n.º 4
0
 def __init__(self, config: Dict) -> None:
     self.description = config.pop("description")
     self.network1 = NetworkTestConfig(config.pop("network1"))
     self.network2 = NetworkTestConfig(config.pop("network2"))
     check_config_dict("experiment", config)