Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/casterkay/Energy-Efficient-5G-RL
/ functions
Functions
683 in github.com/casterkay/Energy-Efficient-5G-RL
⨍
Functions
683
◇
Types & classes
118
↳
Endpoints
2
↓ 2 callers
Function
get_grad_norm
(it)
trainers/utils/__init__.py:19
↓ 2 callers
Function
get_model_dir
(args, env_args, run_dir, version='')
simulate.py:65
↓ 2 callers
Method
get_obs
Returns all agent observations in a list.
env/multi_agent.py:19
↓ 2 callers
Function
get_run_dir
(args, env_args)
utils.py:106
↓ 2 callers
Function
get_shape_from_act_space
(act_space)
trainers/utils/space_utils.py:10
↓ 2 callers
Method
get_step
(self, tag)
agents/option-critic/utils/logger.py:48
↓ 2 callers
Function
huber_loss
(e, d)
trainers/utils/__init__.py:33
↓ 2 callers
Method
lazy_init_writer
(self)
agents/option-critic/utils/logger.py:39
↓ 2 callers
Method
load
(self, model_dir, version='')
agents/dqn.py:83
↓ 2 callers
Method
log_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 callers
Function
make_env
(args, env_args, for_eval=False)
train.py:37
↓ 2 callers
Function
make_figure
(net, size=(1000, 600), add_anim_btn=False, add_subplots=True)
visualize/render.py:288
↓ 2 callers
Function
mse_loss
(e)
trainers/utils/__init__.py:37
↓ 2 callers
Method
normalize
(self, input_vector)
trainers/utils/valuenorm.py:57
↓ 2 callers
Method
observe_bs
(self, bs_id)
network/network.py:260
↓ 2 callers
Method
observe_self
(self)
network/base_station.py:535
↓ 2 callers
Function
onehot_vec
(n, k)
utils.py:72
↓ 2 callers
Method
plot_mean
(self, data, x=None, **kwargs)
agents/option-critic/utils/plot.py:108
↓ 2 callers
Method
remove_from_cell
(self, ue)
network/base_station.py:338
↓ 2 callers
Function
render_csi
(net, frame, last_frame=None, kpis=['S', 'I', 'SINR'])
visualize/render.py:169
↓ 2 callers
Method
running_mean_var
(self)
trainers/utils/valuenorm.py:32
↓ 2 callers
Method
save
(self, version='')
trainers/dqn_trainer.py:161
↓ 2 callers
Method
save
Save policy's actor and critic networks.
trainers/mappo_trainer.py:562
↓ 2 callers
Function
set_log_file
(log_file)
utils.py:57
↓ 2 callers
Function
set_log_level
(level)
utils.py:49
↓ 2 callers
Method
test_network_channel
(self)
network/network.py:246
↓ 2 callers
Method
to_numpy
(self, v)
agents/option-critic/utils/logger.py:43
↓ 2 callers
Method
total
(self)
agents/option-critic/utils/sum_tree.py:35
↓ 2 callers
Method
update
(self, input_vector)
trainers/utils/valuenorm.py:39
↓ 2 callers
Function
update_linear_schedule
Decreases the learning rate linearly
trainers/utils/__init__.py:27
↓ 2 callers
Method
update_power_consumption
(self)
network/base_station.py:381
↓ 1 callers
Method
__init__
(self, args, obs_shape)
agents/mappo/nn/cnn.py:47
↓ 1 callers
Method
__init__
(self, args, obs_space, action_space, device=torch.device("cpu"))
agents/mappo/nn/actor_critic.py:19
↓ 1 callers
Method
__init__
(self, args, obs_shape, cat_self=True, attn_internal=False)
agents/mappo/nn/mlp.py:33
↓ 1 callers
Method
__init__
(self)
agents/option-critic/network/network_utils.py:16
↓ 1 callers
Method
__init__
(self, config)
agents/option-critic/agent/BaseAgent.py:15
↓ 1 callers
Method
_disconnect
Don't call this directly. Use UE.disconnect() instead.
network/base_station.py:312
↓ 1 callers
Method
_parse_start_time
(self, start_time)
network/network.py:124
↓ 1 callers
Method
_propagate
(self, idx, change)
agents/option-critic/utils/sum_tree.py:16
↓ 1 callers
Method
_retrieve
(self, idx, s)
agents/option-critic/utils/sum_tree.py:23
↓ 1 callers
Method
_rolling_window
(self, a, window)
agents/option-critic/utils/plot.py:23
↓ 1 callers
Method
_transition
(self)
agents/option-critic/agent/BaseAgent.py:145
↓ 1 callers
Method
_window_func
(self, x, y, window, func)
agents/option-critic/utils/plot.py:28
↓ 1 callers
Method
act
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 callers
Method
add
(self, p, data)
agents/option-critic/utils/sum_tree.py:39
↓ 1 callers
Method
add_base_station
(self, bs)
network/network.py:193
↓ 1 callers
Method
add_to_cell
(self, ue)
network/base_station.py:334
↓ 1 callers
Method
add_user
(self, ue: UserEquipment=None, **kwargs)
network/network.py:205
↓ 1 callers
Method
after_update
Copy last timestep data to first index. Called after update to model.
trainers/utils/shared_buffer.py:151
↓ 1 callers
Function
aggregate
(nums)
data/agg_traffic.py:159
↓ 1 callers
Method
alloc_power
(self)
network/base_station.py:385
↓ 1 callers
Method
avg_num_antennas
(self)
network/network.py:315
↓ 1 callers
Method
avg_sleep_ratios
(self)
network/network.py:311
↓ 1 callers
Method
cal_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 callers
Method
calc_total_stats
(self)
network/network.py:318
↓ 1 callers
Function
cell_id_to_site_id
(cell_id)
data/agg_traffic.py:20
↓ 1 callers
Method
close
(self)
agents/option-critic/component/replay.py:276
↓ 1 callers
Method
close_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 callers
Function
close_obj
(obj)
agents/option-critic/utils/misc.py:50
↓ 1 callers
Method
compute
Calculate returns for the collected data.
trainers/mappo_trainer.py:542
↓ 1 callers
Method
compute_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 callers
Method
compute_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 callers
Method
compute_sinr
(self, N=config.noiseSpectralDensity)
network/user_equipment.py:138
↓ 1 callers
Function
copy_text
(text)
analysis/benchmark.py:327
↓ 1 callers
Function
create_dash_app
(env, args)
visualize/render.py:378
↓ 1 callers
Method
create_new_bs
(self, id, pos, **kwargs)
network/network.py:199
↓ 1 callers
Function
deep_update
(dict1, dict2)
utils.py:94
↓ 1 callers
Method
disconnect_all
(self)
network/base_station.py:449
↓ 1 callers
Function
divide_flow
(start_time, duration_ms, octets)
data/agg_traffic.py:80
↓ 1 callers
Method
emit_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 callers
Method
eval_episode
(self)
agents/option-critic/agent/BaseAgent.py:41
↓ 1 callers
Method
eval_episodes
(self)
agents/option-critic/agent/BaseAgent.py:52
↓ 1 callers
Method
eval_step
(self, state)
agents/option-critic/agent/BaseAgent.py:38
↓ 1 callers
Method
evaluate_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 callers
Method
extract
(self, keys)
agents/option-critic/component/replay.py:50
↓ 1 callers
Method
feature
(self, obs)
agents/option-critic/network/network_heads.py:162
↓ 1 callers
Method
feed_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 callers
Method
fit
Fit the traffic model to the given traffic trace dataset.
traffic/model.py:65
↓ 1 callers
Function
fn_name
(fn)
utils.py:143
↓ 1 callers
Method
from_scenario
(cls, scenario='RANDOM', **kwargs)
traffic/model.py:49
↓ 1 callers
Method
generate_new_ues
(self, dt, **kwargs)
network/network.py:238
↓ 1 callers
Function
generate_tag
(params)
agents/option-critic/utils/misc.py:72
↓ 1 callers
Method
get_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 callers
Method
get_avail_agent_actions
Returns the available actions for agent_id.
env/multi_agent.py:43
↓ 1 callers
Method
get_cent_obs_size
Returns the size of the global state.
env/multi_agent.py:35
↓ 1 callers
Function
get_clones
(module, N)
agents/mappo/nn/util.py:13
↓ 1 callers
Function
get_default_env_config
(args, env_args)
train.py:20
↓ 1 callers
Function
get_dqn_config
()
trainers/dqn_trainer.py:22
↓ 1 callers
Method
get_history_stats
(self)
network/base_station.py:561
↓ 1 callers
Function
get_logger
(tag='default', log_level=0)
agents/option-critic/utils/logger.py:17
↓ 1 callers
Method
get_obs_agent
Returns observation for agent_id.
env/multi_agent.py:23
↓ 1 callers
Method
get_obs_size
Returns the size of the observation.
env/multi_agent.py:27
↓ 1 callers
Method
get_observation
(self)
network/base_station.py:525
↓ 1 callers
Method
get_reward
(self, state)
env/environment.py:134
↓ 1 callers
Method
get_start_time_of_slot
(self, time_slot: str)
traffic/model.py:114
↓ 1 callers
Method
get_stats
(self)
agents/mappo/nn/util.py:36
↓ 1 callers
Method
get_time_slot
(self, time)
traffic/model.py:110
↓ 1 callers
Method
get_total_actions
Returns the total number of actions an agent could ever take.
env/multi_agent.py:47
↓ 1 callers
Method
get_ue_stats
(self, ues)
network/base_station.py:592
↓ 1 callers
Method
get_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
← previous
next →
101–200 of 683, ranked by callers