environment = UnittestEnvironment(states=states, actions=actions)
if self.__class__.config is None:
config = dict()
config["states"] = environment.states
config["actions"] = environment.actions
if not self.__class__.ignore_network and network is not None:
config["network"] = network
After Change
if self.__class__.config is not None:
for key, arg in self.__class__.config.items():
if key not in kwargs:
kwargs[key] = arg
kwargs["states"] = environment.states
kwargs["actions"] = environment.actions
if not self.__class__.ignore_network and network is not None:
kwargs["network"] = network