def __init__(self, user_id, sim_config={}, initial_state={}, seeds={}, env_processes={}, exogenous_states={}, partial_state_update_blocks={}, policy_ops=[lambda a, b: a + b], session_id=0, simulation_id=0, run_id=1, **kwargs) -> None: # print(exogenous_states) self.sim_config = sim_config self.initial_state = initial_state self.seeds = seeds self.env_processes = env_processes self.exogenous_states = exogenous_states self.partial_state_updates = partial_state_update_blocks self.policy_ops = policy_ops self.kwargs = kwargs self.user_id = user_id self.session_id = session_id self.simulation_id = simulation_id self.run_id = run_id sanitize_config(self)
def __init__(self, user_id, model_id, subset_id, subset_window, sim_config={}, initial_state={}, seeds={}, env_processes={}, exogenous_states={}, partial_state_update_blocks={}, policy_ops=[lambda a, b: a + b], session_id=0, simulation_id=0, run_id=1, experiment_id=0, exp_window=deque([0, None], 2), exp_creation_ts=None, **kwargs ) -> None: self.sim_config = sim_config self.initial_state = initial_state self.seeds = seeds self.env_processes = env_processes self.exogenous_states = exogenous_states self.partial_state_update_blocks = partial_state_update_blocks self.policy_ops = policy_ops self.kwargs = kwargs self.session_id = session_id # essentially config id self.experiment_id = experiment_id self.user_id = user_id self.model_id = model_id self.exp_creation_ts = exp_creation_ts self.labeled_jobs = {} self.simulation_id = simulation_id self.subset_id = subset_id self.run_id = run_id self.exp_window = exp_window self.subset_window = subset_window sanitize_config(self)