MCPcopy Create free account

hub / github.com/casterkay/Energy-Efficient-5G-RL / functions

Functions683 in github.com/casterkay/Energy-Efficient-5G-RL

↓ 2 callersFunctionget_grad_norm
(it)
trainers/utils/__init__.py:19
↓ 2 callersFunctionget_model_dir
(args, env_args, run_dir, version='')
simulate.py:65
↓ 2 callersMethodget_obs
Returns all agent observations in a list.
env/multi_agent.py:19
↓ 2 callersFunctionget_run_dir
(args, env_args)
utils.py:106
↓ 2 callersFunctionget_shape_from_act_space
(act_space)
trainers/utils/space_utils.py:10
↓ 2 callersMethodget_step
(self, tag)
agents/option-critic/utils/logger.py:48
↓ 2 callersFunctionhuber_loss
(e, d)
trainers/utils/__init__.py:33
↓ 2 callersMethodlazy_init_writer
(self)
agents/option-critic/utils/logger.py:39
↓ 2 callersMethodload
(self, model_dir, version='')
agents/dqn.py:83
↓ 2 callersMethodlog_train
Log training info. :param train_infos: (dict) information about training update. :param total_num_steps: (int) total number o
trainers/trainer.py:61
↓ 2 callersFunctionmake_env
(args, env_args, for_eval=False)
train.py:37
↓ 2 callersFunctionmake_figure
(net, size=(1000, 600), add_anim_btn=False, add_subplots=True)
visualize/render.py:288
↓ 2 callersFunctionmse_loss
(e)
trainers/utils/__init__.py:37
↓ 2 callersMethodnormalize
(self, input_vector)
trainers/utils/valuenorm.py:57
↓ 2 callersMethodobserve_bs
(self, bs_id)
network/network.py:260
↓ 2 callersMethodobserve_self
(self)
network/base_station.py:535
↓ 2 callersFunctiononehot_vec
(n, k)
utils.py:72
↓ 2 callersMethodplot_mean
(self, data, x=None, **kwargs)
agents/option-critic/utils/plot.py:108
↓ 2 callersMethodremove_from_cell
(self, ue)
network/base_station.py:338
↓ 2 callersFunctionrender_csi
(net, frame, last_frame=None, kpis=['S', 'I', 'SINR'])
visualize/render.py:169
↓ 2 callersMethodrunning_mean_var
(self)
trainers/utils/valuenorm.py:32
↓ 2 callersMethodsave
(self, version='')
trainers/dqn_trainer.py:161
↓ 2 callersMethodsave
Save policy's actor and critic networks.
trainers/mappo_trainer.py:562
↓ 2 callersFunctionset_log_file
(log_file)
utils.py:57
↓ 2 callersFunctionset_log_level
(level)
utils.py:49
↓ 2 callersMethodtest_network_channel
(self)
network/network.py:246
↓ 2 callersMethodto_numpy
(self, v)
agents/option-critic/utils/logger.py:43
↓ 2 callersMethodtotal
(self)
agents/option-critic/utils/sum_tree.py:35
↓ 2 callersMethodupdate
(self, input_vector)
trainers/utils/valuenorm.py:39
↓ 2 callersFunctionupdate_linear_schedule
Decreases the learning rate linearly
trainers/utils/__init__.py:27
↓ 2 callersMethodupdate_power_consumption
(self)
network/base_station.py:381
↓ 1 callersMethod__init__
(self, args, obs_shape)
agents/mappo/nn/cnn.py:47
↓ 1 callersMethod__init__
(self, args, obs_space, action_space, device=torch.device("cpu"))
agents/mappo/nn/actor_critic.py:19
↓ 1 callersMethod__init__
(self, args, obs_shape, cat_self=True, attn_internal=False)
agents/mappo/nn/mlp.py:33
↓ 1 callersMethod__init__
(self)
agents/option-critic/network/network_utils.py:16
↓ 1 callersMethod__init__
(self, config)
agents/option-critic/agent/BaseAgent.py:15
↓ 1 callersMethod_disconnect
Don't call this directly. Use UE.disconnect() instead.
network/base_station.py:312
↓ 1 callersMethod_parse_start_time
(self, start_time)
network/network.py:124
↓ 1 callersMethod_propagate
(self, idx, change)
agents/option-critic/utils/sum_tree.py:16
↓ 1 callersMethod_retrieve
(self, idx, s)
agents/option-critic/utils/sum_tree.py:23
↓ 1 callersMethod_rolling_window
(self, a, window)
agents/option-critic/utils/plot.py:23
↓ 1 callersMethod_transition
(self)
agents/option-critic/agent/BaseAgent.py:145
↓ 1 callersMethod_window_func
(self, x, y, window, func)
agents/option-critic/utils/plot.py:28
↓ 1 callersMethodact
Compute actions using the given inputs. :param obs (np.ndarray): local agent inputs to the actor. :param actor_rnn_state: (np
agents/mappo/policy.py:125
↓ 1 callersMethodadd
(self, p, data)
agents/option-critic/utils/sum_tree.py:39
↓ 1 callersMethodadd_base_station
(self, bs)
network/network.py:193
↓ 1 callersMethodadd_to_cell
(self, ue)
network/base_station.py:334
↓ 1 callersMethodadd_user
(self, ue: UserEquipment=None, **kwargs)
network/network.py:205
↓ 1 callersMethodafter_update
Copy last timestep data to first index. Called after update to model.
trainers/utils/shared_buffer.py:151
↓ 1 callersFunctionaggregate
(nums)
data/agg_traffic.py:159
↓ 1 callersMethodalloc_power
(self)
network/base_station.py:385
↓ 1 callersMethodavg_num_antennas
(self)
network/network.py:315
↓ 1 callersMethodavg_sleep_ratios
(self)
network/network.py:311
↓ 1 callersMethodcal_value_loss
Calculate value function loss. :param values: (torch.Tensor) value function predictions. :param value_preds_batch: (torch.Ten
trainers/mappo_trainer.py:271
↓ 1 callersMethodcalc_total_stats
(self)
network/network.py:318
↓ 1 callersFunctioncell_id_to_site_id
(cell_id)
data/agg_traffic.py:20
↓ 1 callersMethodclose
(self)
agents/option-critic/component/replay.py:276
↓ 1 callersMethodclose_extras
Clean up the extra resources, beyond what's in this base class. Only runs when not self.closed.
env/env_wrappers.py:90
↓ 1 callersFunctionclose_obj
(obj)
agents/option-critic/utils/misc.py:50
↓ 1 callersMethodcompute
Calculate returns for the collected data.
trainers/mappo_trainer.py:542
↓ 1 callersMethodcompute_power_consumption
Reference: Args: - eta: max PA efficiency of the BS - Ppa_max: max PA power consumption - Psyn: sync power
network/base_station.py:462
↓ 1 callersMethodcompute_returns
Compute returns either as discounted sum of rewards, or using GAE. :param next_value: (np.ndarray) value predictions for the step aft
trainers/utils/shared_buffer.py:170
↓ 1 callersMethodcompute_sinr
(self, N=config.noiseSpectralDensity)
network/user_equipment.py:138
↓ 1 callersFunctioncopy_text
(text)
analysis/benchmark.py:327
↓ 1 callersFunctioncreate_dash_app
(env, args)
visualize/render.py:378
↓ 1 callersMethodcreate_new_bs
(self, id, pos, **kwargs)
network/network.py:199
↓ 1 callersFunctiondeep_update
(dict1, dict2)
utils.py:94
↓ 1 callersMethoddisconnect_all
(self)
network/base_station.py:449
↓ 1 callersFunctiondivide_flow
(start_time, duration_ms, octets)
data/agg_traffic.py:80
↓ 1 callersMethodemit_traffic
Randomly generate traffic for the given time. Returns: A list of length n_apps, each element is either (traffic-demand, dela
traffic/model.py:98
↓ 1 callersMethodeval_episode
(self)
agents/option-critic/agent/BaseAgent.py:41
↓ 1 callersMethodeval_episodes
(self)
agents/option-critic/agent/BaseAgent.py:52
↓ 1 callersMethodeval_step
(self, state)
agents/option-critic/agent/BaseAgent.py:38
↓ 1 callersMethodevaluate_actions
Compute log probability and entropy of given actions. :param x: (torch.Tensor) input to network. :param action: (torch.Tensor
agents/mappo/nn/act.py:110
↓ 1 callersMethodextract
(self, keys)
agents/option-critic/component/replay.py:50
↓ 1 callersMethodfeature
(self, obs)
agents/option-critic/network/network_heads.py:162
↓ 1 callersMethodfeed_forward_generator
Yield training data for MLP policies. :param advantages: (np.ndarray) advantage estimates. :param num_mini_batch: (int) numbe
trainers/utils/shared_buffer.py:228
↓ 1 callersMethodfit
Fit the traffic model to the given traffic trace dataset.
traffic/model.py:65
↓ 1 callersFunctionfn_name
(fn)
utils.py:143
↓ 1 callersMethodfrom_scenario
(cls, scenario='RANDOM', **kwargs)
traffic/model.py:49
↓ 1 callersMethodgenerate_new_ues
(self, dt, **kwargs)
network/network.py:238
↓ 1 callersFunctiongenerate_tag
(params)
agents/option-critic/utils/misc.py:72
↓ 1 callersMethodget_actions
Compute actions and value function predictions for the given inputs. :param cent_obs (np.ndarray): centralized input to the critic.
agents/mappo/policy.py:38
↓ 1 callersMethodget_avail_agent_actions
Returns the available actions for agent_id.
env/multi_agent.py:43
↓ 1 callersMethodget_cent_obs_size
Returns the size of the global state.
env/multi_agent.py:35
↓ 1 callersFunctionget_clones
(module, N)
agents/mappo/nn/util.py:13
↓ 1 callersFunctionget_default_env_config
(args, env_args)
train.py:20
↓ 1 callersFunctionget_dqn_config
()
trainers/dqn_trainer.py:22
↓ 1 callersMethodget_history_stats
(self)
network/base_station.py:561
↓ 1 callersFunctionget_logger
(tag='default', log_level=0)
agents/option-critic/utils/logger.py:17
↓ 1 callersMethodget_obs_agent
Returns observation for agent_id.
env/multi_agent.py:23
↓ 1 callersMethodget_obs_size
Returns the size of the observation.
env/multi_agent.py:27
↓ 1 callersMethodget_observation
(self)
network/base_station.py:525
↓ 1 callersMethodget_reward
(self, state)
env/environment.py:134
↓ 1 callersMethodget_start_time_of_slot
(self, time_slot: str)
traffic/model.py:114
↓ 1 callersMethodget_stats
(self)
agents/mappo/nn/util.py:36
↓ 1 callersMethodget_time_slot
(self, time)
traffic/model.py:110
↓ 1 callersMethodget_total_actions
Returns the total number of actions an agent could ever take.
env/multi_agent.py:47
↓ 1 callersMethodget_ue_stats
(self, ues)
network/base_station.py:592
↓ 1 callersMethodget_values
Get value function predictions. :param cent_obs (np.ndarray): centralized input to the critic. :param critic_rnn_states: (np.
agents/mappo/policy.py:62
← previousnext →101–200 of 683, ranked by callers