You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(base) deeplp@deeplp:/deeplp/mainspace/git_dir/SMAAC$ python test.py -n=wcci -s=0 -c=wcci
model name: wcci_0
./data/l2rpn_wcci_2020
/home/deeplp/anaconda3/lib/python3.8/site-packages/lightsim2grid/gridmodel/_aux_add_trafo.py:65: UserWarning: There were some Nan in the pp_net.trafo["tap_step_degree"], they have been replaced by 0
warnings.warn("There were some Nan in the pp_net.trafo["tap_step_degree"], they have been replaced by 0")
/home/deeplp/anaconda3/lib/python3.8/site-packages/lightsim2grid/gridmodel/_aux_add_slack.py:113: UserWarning: We found either some slack coefficient to be < 0. or they were all 0.We set them all to 1.0 to avoid such issues
warnings.warn("We found either some slack coefficient to be < 0. or they were all 0."
Reward "LossReward" does not support the logger feature. Error was : init() got an unexpected keyword argument 'logger'
/home/deeplp/anaconda3/lib/python3.8/site-packages/lightsim2grid/gridmodel/_aux_add_trafo.py:65: UserWarning: There were some Nan in the pp_net.trafo["tap_step_degree"], they have been replaced by 0
warnings.warn("There were some Nan in the pp_net.trafo["tap_step_degree"], they have been replaced by 0")
/home/deeplp/anaconda3/lib/python3.8/site-packages/lightsim2grid/gridmodel/_aux_add_slack.py:113: UserWarning: We found either some slack coefficient to be < 0. or they were all 0.We set them all to 1.0 to avoid such issues
warnings.warn("We found either some slack coefficient to be < 0. or they were all 0."
Reward "LossReward" does not support the logger feature. Error was : init() got an unexpected keyword argument 'logger'
{'NO_OVERFLOW_DISCONNECTION': False, 'NB_TIMESTEP_OVERFLOW_ALLOWED': 3, 'NB_TIMESTEP_RECONNECTION': 12, 'NB_TIMESTEP_COOLDOWN_LINE': 3, 'NB_TIMESTEP_COOLDOWN_SUB': 3, 'HARD_OVERFLOW_THRESHOLD': 200.0, 'ENV_DC': False, 'FORECAST_DC': False, 'MAX_SUB_CHANGED': 1, 'MAX_LINE_STATUS_CHANGED': 1, 'IGNORE_MIN_UP_DOWN_TIME': True, 'ALLOW_DISPATCH_GEN_SWITCH_OFF': True, 'LIMIT_INFEASIBLE_CURTAILMENT_STORAGE_ACTION': False, 'INIT_STORAGE_CAPACITY': 0.5, 'ACTIVATE_STORAGE_LOSS': True, 'ALARM_BEST_TIME': 12, 'ALARM_WINDOW_SIZE': 12, 'MAX_SIMULATE_PER_STEP': -1, 'MAX_SIMULATE_PER_EPISODE': -1}
Lonely line 15 [0, 33, 35, 42, 11, 13, 14, 15, 16, 45, 46, 47, 24, 25, 57]
Masked sorted topology 11 [16, 23, 21, 26, 33, 29, 35, 9, 7, 4, 1]
N: 177, O: 30, S: 128, A: 79, (11)
{'seed': 0, 'case': 'wcci', 'gpuid': 0, 'memlen': 50000, 'nb_frame': 100000, 'test_step': 1000, 'head_number': 8, 'state_dim': 128, 'n_history': 6, 'dropout': 0.0, 'rule': 'c', 'threshold': 0.1, 'danger': 0.9, 'mask': 5, 'target_update': 1, 'tau': 0.001, 'batch_size': 128, 'lr': 5e-05, 'gamma': 0.995, 'name': 'wcci', 'actor_lr': 5e-05, 'critic_lr': 5e-05, 'embed_lr': 5e-05, 'alpha_lr': 5e-05}
mean,std shape torch.Size([1, 1266]) torch.Size([1, 1266])
torch.Size([1, 1429]) torch.Size([1, 1266])
Traceback (most recent call last):
File "test.py", line 177, in
trainer.train(
File "/deeplp/mainspace/git_dir/SMAAC/train.py", line 160, in train
prev_act = self.agent.act(obs, None, None)
File "/deeplp/mainspace/git_dir/SMAAC/agent.py", line 187, in act
self.stack_obs(obs)
File "/deeplp/mainspace/git_dir/SMAAC/agent.py", line 151, in stack_obs
obs_vect, self.topo = self.convert_obs(self.state_normalize(obs_vect))
File "/deeplp/mainspace/git_dir/SMAAC/agent.py", line 103, in state_normalize
s = (s - self.state_mean) / self.state_std
RuntimeError: The size of tensor a (1429) must match the size of tensor b (1266) at non-singleton dimension 1
The text was updated successfully, but these errors were encountered:
(base) deeplp@deeplp:/deeplp/mainspace/git_dir/SMAAC$ python test.py -n=wcci -s=0 -c=wcci
model name: wcci_0
./data/l2rpn_wcci_2020
/home/deeplp/anaconda3/lib/python3.8/site-packages/lightsim2grid/gridmodel/_aux_add_trafo.py:65: UserWarning: There were some Nan in the pp_net.trafo["tap_step_degree"], they have been replaced by 0
warnings.warn("There were some Nan in the pp_net.trafo["tap_step_degree"], they have been replaced by 0")
/home/deeplp/anaconda3/lib/python3.8/site-packages/lightsim2grid/gridmodel/_aux_add_slack.py:113: UserWarning: We found either some slack coefficient to be < 0. or they were all 0.We set them all to 1.0 to avoid such issues
warnings.warn("We found either some slack coefficient to be < 0. or they were all 0."
Reward "LossReward" does not support the logger feature. Error was : init() got an unexpected keyword argument 'logger'
/home/deeplp/anaconda3/lib/python3.8/site-packages/lightsim2grid/gridmodel/_aux_add_trafo.py:65: UserWarning: There were some Nan in the pp_net.trafo["tap_step_degree"], they have been replaced by 0
warnings.warn("There were some Nan in the pp_net.trafo["tap_step_degree"], they have been replaced by 0")
/home/deeplp/anaconda3/lib/python3.8/site-packages/lightsim2grid/gridmodel/_aux_add_slack.py:113: UserWarning: We found either some slack coefficient to be < 0. or they were all 0.We set them all to 1.0 to avoid such issues
warnings.warn("We found either some slack coefficient to be < 0. or they were all 0."
Reward "LossReward" does not support the logger feature. Error was : init() got an unexpected keyword argument 'logger'
{'NO_OVERFLOW_DISCONNECTION': False, 'NB_TIMESTEP_OVERFLOW_ALLOWED': 3, 'NB_TIMESTEP_RECONNECTION': 12, 'NB_TIMESTEP_COOLDOWN_LINE': 3, 'NB_TIMESTEP_COOLDOWN_SUB': 3, 'HARD_OVERFLOW_THRESHOLD': 200.0, 'ENV_DC': False, 'FORECAST_DC': False, 'MAX_SUB_CHANGED': 1, 'MAX_LINE_STATUS_CHANGED': 1, 'IGNORE_MIN_UP_DOWN_TIME': True, 'ALLOW_DISPATCH_GEN_SWITCH_OFF': True, 'LIMIT_INFEASIBLE_CURTAILMENT_STORAGE_ACTION': False, 'INIT_STORAGE_CAPACITY': 0.5, 'ACTIVATE_STORAGE_LOSS': True, 'ALARM_BEST_TIME': 12, 'ALARM_WINDOW_SIZE': 12, 'MAX_SIMULATE_PER_STEP': -1, 'MAX_SIMULATE_PER_EPISODE': -1}
Lonely line 15 [0, 33, 35, 42, 11, 13, 14, 15, 16, 45, 46, 47, 24, 25, 57]
Masked sorted topology 11 [16, 23, 21, 26, 33, 29, 35, 9, 7, 4, 1]
N: 177, O: 30, S: 128, A: 79, (11)
{'seed': 0, 'case': 'wcci', 'gpuid': 0, 'memlen': 50000, 'nb_frame': 100000, 'test_step': 1000, 'head_number': 8, 'state_dim': 128, 'n_history': 6, 'dropout': 0.0, 'rule': 'c', 'threshold': 0.1, 'danger': 0.9, 'mask': 5, 'target_update': 1, 'tau': 0.001, 'batch_size': 128, 'lr': 5e-05, 'gamma': 0.995, 'name': 'wcci', 'actor_lr': 5e-05, 'critic_lr': 5e-05, 'embed_lr': 5e-05, 'alpha_lr': 5e-05}
mean,std shape torch.Size([1, 1266]) torch.Size([1, 1266])
torch.Size([1, 1429]) torch.Size([1, 1266])
Traceback (most recent call last):
File "test.py", line 177, in
trainer.train(
File "/deeplp/mainspace/git_dir/SMAAC/train.py", line 160, in train
prev_act = self.agent.act(obs, None, None)
File "/deeplp/mainspace/git_dir/SMAAC/agent.py", line 187, in act
self.stack_obs(obs)
File "/deeplp/mainspace/git_dir/SMAAC/agent.py", line 151, in stack_obs
obs_vect, self.topo = self.convert_obs(self.state_normalize(obs_vect))
File "/deeplp/mainspace/git_dir/SMAAC/agent.py", line 103, in state_normalize
s = (s - self.state_mean) / self.state_std
RuntimeError: The size of tensor a (1429) must match the size of tensor b (1266) at non-singleton dimension 1
The text was updated successfully, but these errors were encountered: