SYMBOL INDEX (1684 symbols across 166 files) FILE: BuildLinuxRender.py function print亮绿 (line 16) | def print亮绿(*kw,**kargs): FILE: BuildLinuxServer.py function print亮绿 (line 16) | def print亮绿(*kw,**kargs): FILE: BuildWindowsRender.py function print亮绿 (line 8) | def print亮绿(*kw,**kargs): FILE: BuildWindowsServer.py function print亮绿 (line 8) | def print亮绿(*kw,**kargs): FILE: Please_Run_This_First_To_Fetch_Big_Files.py function combine_file (line 11) | def combine_file(model_dir, output_file_path, num_parts): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/alg_base.py class AlgorithmBase (line 6) | class AlgorithmBase(): method __init__ (line 7) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 17) | def interact_with_env(self, team_intel): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/attention.py class MultiHeadAttention (line 9) | class MultiHeadAttention(nn.Module): method __init__ (line 11) | def __init__( method init_parameters (line 44) | def init_parameters(self): method forward (line 49) | def forward(self, q, k=None, v=None, mask=None, return_attn=False, ret... method forward_ (line 79) | def forward_(self, q, k=None, v=None, mask=None, return_attn=False, re... class SimpleAttention (line 149) | class SimpleAttention(nn.Module): method __init__ (line 150) | def __init__(self, h_dim): method init_parameters (line 157) | def init_parameters(self): method forward (line 162) | def forward(self, k, q, v, mask=None): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/conc.py class Concentration (line 7) | class Concentration(nn.Module): method __init__ (line 8) | def __init__(self, n_focus_on, h_dim, skip_connect=False, skip_connect... method init_parameters (line 23) | def init_parameters(self): method forward (line 28) | def forward(self, vs, ve, ve_dead, skip_connect_ze=None, skip_connect_... class ConcentrationHete (line 66) | class ConcentrationHete(nn.Module): method __init__ (line 67) | def __init__(self, n_focus_on, h_dim, skip_connect=False, skip_connect... method init_parameters (line 82) | def init_parameters(self): method forward (line 87) | def forward(self, vs, ve, ve_dead, skip_connect_ze=None, skip_connect_... FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/dl_pool.py class DeepLearningPool (line 9) | class DeepLearningPool(object): method __init__ (line 10) | def __init__(self, pool_size, batch_size) -> None: method add_and_sample (line 19) | def add_and_sample(self, x, y): method _get_storage_idx (line 33) | def _get_storage_idx(self, inc=None): method _sample (line 52) | def _sample(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/hyper_net.py class HyperNet (line 7) | class HyperNet(nn.Module): method __init__ (line 8) | def __init__(self, **kwargs): method forward (line 31) | def forward(self, x, hyper_x): class MyHyperNet (line 56) | class MyHyperNet(nn.Module): method __init__ (line 57) | def __init__(self, x_in_dim, hyber_in_dim, layer_out_dims, hyber_hid_d... method forward (line 79) | def forward(self, x, hyper_x): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/logit2act.py class Logit2Act (line 13) | class Logit2Act(nn.Module): method __init__ (line 14) | def __init__(self, *args, **kwargs): method _logit2act_rsn (line 17) | def _logit2act_rsn(self, logits_agent_cluster, eval_mode, greedy, eval... method _logit2act (line 29) | def _logit2act(self, logits_agent_cluster, eval_mode, greedy, eval_act... method _get_act_log_probs (line 40) | def _get_act_log_probs(distribution, action): method act (line 45) | def act(self, *args, **kargs): method evaluate_actions (line 49) | def evaluate_actions(self, *args, **kargs): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/mlp.py class SimpleMLP (line 6) | class SimpleMLP(nn.Module): method __init__ (line 7) | def __init__(self, in_dim, out_dim, hidden_dim=128, use_normalization=... method forward (line 25) | def forward(self,x): class ResLinear (line 28) | class ResLinear(nn.Module): method __init__ (line 29) | def __init__(self, io_dim, h_dim, need_input_tf=False, input_tf_dim=No... method forward (line 38) | def forward(self, xo): class LinearFinal (line 46) | class LinearFinal(nn.Module): method __init__ (line 53) | def __init__(self, in_features: int, out_features: int, bias: bool = T... method forward (line 63) | def forward(self, input: torch.Tensor) -> torch.Tensor: method extra_repr (line 66) | def extra_repr(self) -> str: FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/net_manifest.py function weights_init (line 3) | def weights_init(m): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/norm.py class DynamicNorm (line 16) | class DynamicNorm(nn.Module): method __init__ (line 18) | def __init__(self, input_size, only_for_last_dim, exclude_one_hot=True... method forward (line 31) | def forward(self, x, get_mu_var=False): class DynamicNormFix (line 74) | class DynamicNormFix(nn.Module): method __init__ (line 76) | def __init__(self, input_size, only_for_last_dim, exclude_one_hot=True... method np_forward (line 102) | def np_forward(self, x, freeze=False, get_mu_var=False): method forward (line 105) | def forward(self, x, freeze=False, get_mu_var=False): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/pca.py function pca (line 3) | def pca(samples, target_dim): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/ppo_sampler.py class TrajPoolSampler (line 14) | class TrajPoolSampler(): method __init__ (line 15) | def __init__(self, n_div, traj_pool, flag, req_dict, req_dict_rename, ... method __len__ (line 68) | def __len__(self): method reminder (line 71) | def reminder(self, n_sample): method get_sampler (line 84) | def get_sampler(self): method reset_and_get_iter (line 95) | def reset_and_get_iter(self): method determine_max_n_sample (line 110) | def determine_max_n_sample(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/rl_alg_base.py class RLAlgorithmBase (line 7) | class RLAlgorithmBase(AlgorithmBase): method __init__ (line 8) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 19) | def interact_with_env(self, team_intel): method save_model (line 22) | def save_model(self, update_cnt, info=None): method process_framedata (line 25) | def process_framedata(self, traj_framedata): method process_framedata (line 30) | def process_framedata(self, traj_framedata): method check_reward_type (line 55) | def check_reward_type(self, AlgorithmConfig): method mask_paused_env (line 65) | def mask_paused_env(self, frag): method on_notify (line 78) | def on_notify(self, message, **kargs): method commit_traj_frag (line 90) | def commit_traj_frag(self, unfi_frag, req_hook=True): method traj_waiting_hook (line 104) | def traj_waiting_hook(self, new_frag): method _no_hook (line 120) | def _no_hook(self, new_frag): method _check_data_hash (line 126) | def _check_data_hash(self): method _check_data_curruption (line 142) | def _check_data_curruption(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/traj.py class TRAJ_BASE (line 6) | class TRAJ_BASE(): method __init__ (line 11) | def __init__(self, traj_limit, env_id): method remember (line 21) | def remember(self, key, content): method copy_track (line 34) | def copy_track(self, origin_key, new_key): method check_type_shape (line 50) | def check_type_shape(self, key, first_content=None): method init_track (line 64) | def init_track(self, key, first_content): method init_track_none (line 76) | def init_track_none(self, key): method time_shift (line 85) | def time_shift(self): method cut_tail (line 90) | def cut_tail(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/common/traj_gae.py class trajectory (line 8) | class trajectory(TRAJ_BASE): method __init__ (line 10) | def __init__(self, traj_limit, env_id, alg_cfg): method early_finalize (line 15) | def early_finalize(self): method set_terminal_obs (line 19) | def set_terminal_obs(self, tobs): method cut_tail (line 22) | def cut_tail(self): method reward_push_forward (line 54) | def reward_push_forward(self, dead_mask): method finalize (line 72) | def finalize(self): method gae_finalize_return (line 107) | def gae_finalize_return(self, reward_key, value_key, new_return_name): method gae_finalize_return_pr (line 135) | def gae_finalize_return_pr(self, reward_key, value_key, new_return_name): class TrajManagerBase (line 187) | class TrajManagerBase(object): method __init__ (line 188) | def __init__(self, n_env, traj_limit, alg_cfg): method __check_integraty (line 201) | def __check_integraty(self, traj_frag): method batch_update (line 211) | def batch_update(self, traj_frag): method traj_remember (line 239) | def traj_remember(self, traj, key, content, frag_index, n_active): class BatchTrajManager (line 249) | class BatchTrajManager(TrajManagerBase): method __init__ (line 250) | def __init__(self, n_env, traj_limit, trainer_hook, alg_cfg): method feed_traj (line 256) | def feed_traj(self, traj_frag, require_hook=False): method train_and_clear_traj_pool (line 264) | def train_and_clear_traj_pool(self): method can_exec_training (line 275) | def can_exec_training(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/example_foundation.py class ExampleFoundation (line 6) | class ExampleFoundation(): method __init__ (line 7) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 12) | def interact_with_env(self, team_intel): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/ccategorical.py function random_process (line 9) | def random_process(probs, rsn_flag): function random_process_allow_big_yita (line 32) | def random_process_allow_big_yita(probs, rsn_flag): function random_process_with_clamp3 (line 60) | def random_process_with_clamp3(probs, yita, yita_min_prob, rsn_flag): class CCategorical (line 84) | class CCategorical(): method __init__ (line 85) | def __init__(self, planner): method sample (line 90) | def sample(self, dist, eprsn): method register_rsn (line 94) | def register_rsn(self, rsn_flag): method feed_logits (line 97) | def feed_logits(self, logits): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/div_tree.py class DivTree (line 9) | class DivTree(nn.Module): # merge by MLP version method __init__ (line 10) | def __init__(self, input_dim, h_dim, n_action): method set_to_init_level (line 36) | def set_to_init_level(self, auto_transfer=True): method change_div_tree_level (line 43) | def change_div_tree_level(self, level, auto_transfer=True): method forward (line 64) | def forward(self, x_in, agent_ids): # x0: shape = (?,...,?, n_agent, ... function _2div (line 112) | def _2div(arr): function get_division_tree (line 142) | def get_division_tree(n_agents): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/foundation.py class AlgorithmConfig (line 7) | class AlgorithmConfig: function str_array_to_num (line 72) | def str_array_to_num(str_arr): function itemgetter (line 81) | def itemgetter(*items): class CPU_Unpickler (line 85) | class CPU_Unpickler(pickle.Unpickler): method find_class (line 86) | def find_class(self, module, name): class ReinforceAlgorithmFoundation (line 91) | class ReinforceAlgorithmFoundation(RLAlgorithmBase): method __init__ (line 92) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method action_making (line 157) | def action_making(self, StateRecall, test_mode): method matrix_callback_special (line 216) | def matrix_callback_special(self, framefrag): method matrix_callback_special_callback (line 221) | def matrix_callback_special_callback(self, new_frag): method interact_with_env (line 244) | def interact_with_env(self, StateRecall): method interact_with_env_genuine (line 252) | def interact_with_env_genuine(self, StateRecall): method train (line 260) | def train(self): method on_notify (line 277) | def on_notify(self, message, **kargs): method save_model (line 315) | def save_model(self, update_cnt, info=None): method find_ckp (line 344) | def find_ckp(self, feature): method load_model (line 354) | def load_model(self, AlgorithmConfig): method process_framedata (line 386) | def process_framedata(self, traj_framedata): method mask_paused_env (line 410) | def mask_paused_env(self, frag): method _create_config_fly (line 420) | def _create_config_fly(self): method _config_on_fly (line 426) | def _config_on_fly(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/hete_assignment.py function random_group (line 8) | def random_group(random_select_fn, n_thread, hete_type, n_hete_types, n_... function select_nets_for_shellenv (line 28) | def select_nets_for_shellenv(n_types, policy, hete_type_list, n_thread, ... FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/hete_net.py function popgetter (line 13) | def popgetter(*items): class no_context (line 17) | class no_context(): method __enter__ (line 18) | def __enter__(self): method __exit__ (line 20) | def __exit__(self, exc_type, exc_value, traceback): function _count_list_type (line 23) | def _count_list_type(x): function _create_tensor_ph_or_fill_ (line 31) | def _create_tensor_ph_or_fill_(ref, pt, offset, *args): function _tensor_expand_thread_dim_v2_ (line 37) | def _tensor_expand_thread_dim_v2_(ref, pt, offset, *args): function dfs_create_and_fn (line 45) | def dfs_create_and_fn(ref, pt, offset, fn, *args): function _deal_single_in (line 73) | def _deal_single_in(x, mask_flatten): function distribute_compute (line 81) | def distribute_compute(fn_arr, mask_arr, **kwargs): class HeteNet (line 125) | class HeteNet(nn.Module): method __init__ (line 126) | def __init__(self, rawob_dim, n_action, hete_type, **kwargs): method lock_net (line 187) | def lock_net(self, i): method unlock_net (line 192) | def unlock_net(self, i): method register_ckp (line 197) | def register_ckp(self, win_rate, cpk_path, mean_reward): method random_select (line 249) | def random_select(self, testing, *args, **kwargs): method random_select_matrix_test (line 275) | def random_select_matrix_test(self, testing, *args, **kwargs): method on_update (line 308) | def on_update(self, update_cnt): method redirect_to_frontend (line 311) | def redirect_to_frontend(self, i): method acquire_net (line 314) | def acquire_net(self, i): method exe (line 318) | def exe(self, hete_pick=None, **kargs): method act (line 381) | def act(self, **kargs): method evaluate_actions (line 385) | def evaluate_actions(self, **kargs): method trim_ckp (line 388) | def trim_ckp(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/net.py class Net (line 21) | class Net(nn.Module): method __init__ (line 22) | def __init__(self, rawob_dim, n_action, **kwargs): method act (line 57) | def act(self, *args, **kargs): method evaluate_actions (line 60) | def evaluate_actions(self, *args, **kargs): method _act (line 63) | def _act(self, obs=None, test_mode=None, eval_mode=False, eval_actions... method _logit2act_rsn (line 109) | def _logit2act_rsn(self, logits_agent_cluster, eval_mode, greedy, eval... method _logit2act (line 121) | def _logit2act(self, logits_agent_cluster, eval_mode, greedy, eval_act... method _get_act_log_probs (line 132) | def _get_act_log_probs(distribution, action): class NetCentralCritic (line 138) | class NetCentralCritic(nn.Module): method __init__ (line 139) | def __init__(self, rawob_dim, n_action, **kwargs): method estimate_state (line 179) | def estimate_state(self, obs=None, test_mode=None, eval_mode=False, ev... FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/ppo.py class PPO (line 15) | class PPO(): method __init__ (line 16) | def __init__(self, policy_and_critic, ppo_config, mcv=None): method freeze_body (line 62) | def freeze_body(self): method train_on_traj (line 70) | def train_on_traj(self, traj_pool, task): method log_reward_rich (line 88) | def log_reward_rich(self, traj_pool, mcv2): method train_on_traj_ (line 109) | def train_on_traj_(self, traj_pool, task): method freeze_body (line 148) | def freeze_body(self): method log_trivial (line 156) | def log_trivial(self, dictionary): method log_trivial_finalize (line 162) | def log_trivial_finalize(self, print=True): method establish_pytorch_graph (line 177) | def establish_pytorch_graph(self, flag, sample, n): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/ppo_sampler.py class TrajPoolSampler (line 12) | class TrajPoolSampler(): method __init__ (line 13) | def __init__(self, n_div, traj_pool, flag, prevent_batchsize_oom=False... method __len__ (line 60) | def __len__(self): method determine_max_n_sample (line 63) | def determine_max_n_sample(self): method reset_and_get_iter (line 80) | def reset_and_get_iter(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/shell_env.py class ShellEnvConfig (line 10) | class ShellEnvConfig: class ActionConvertLegacy (line 14) | class ActionConvertLegacy(): method __init__ (line 15) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 36) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 49) | def get_tp_avail_act(self, type): method confirm_parameters_are_correct (line 67) | def confirm_parameters_are_correct(self, team, agent_num, opp_agent_num): function count_list_type (line 73) | def count_list_type(x): class ShellEnvWrapper (line 82) | class ShellEnvWrapper(object): method __init__ (line 83) | def __init__(self, n_agent, n_thread, space, mcv, rl_functional, alg_c... method cold_start_warmup (line 128) | def cold_start_warmup(self, StateRecall): method interact_with_env (line 138) | def interact_with_env(self, StateRecall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/stage_planner.py class PolicyRsnConfig (line 5) | class PolicyRsnConfig: class StagePlanner (line 16) | class StagePlanner: method __init__ (line 17) | def __init__(self, mcv) -> None: method is_resonance_active (line 32) | def is_resonance_active(self,): method is_body_freeze (line 35) | def is_body_freeze(self,): method get_yita (line 38) | def get_yita(self): method get_yita_min_prob (line 41) | def get_yita_min_prob(self): method can_exec_trainning (line 44) | def can_exec_trainning(self): method update_plan (line 52) | def update_plan(self): method activate_pr (line 61) | def activate_pr(self): method when_pr_inactive (line 67) | def when_pr_inactive(self): method when_pr_active (line 79) | def when_pr_active(self): method _update_yita (line 87) | def _update_yita(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/hete_league_onenet_fix/trajectory.py class trajectory (line 11) | class trajectory(TRAJ_BASE): method __init__ (line 13) | def __init__(self, traj_limit, env_id): method early_finalize (line 17) | def early_finalize(self): method set_terminal_obs (line 21) | def set_terminal_obs(self, tobs): method cut_tail (line 24) | def cut_tail(self): method reward_push_forward (line 57) | def reward_push_forward(self, dead_mask): method finalize (line 75) | def finalize(self): method gae_finalize_return (line 106) | def gae_finalize_return(self, reward_key, value_key, new_return_name): class TrajPoolManager (line 146) | class TrajPoolManager(object): method __init__ (line 147) | def __init__(self): method absorb_finalize_pool (line 150) | def absorb_finalize_pool(self, pool): class TrajManagerBase (line 175) | class TrajManagerBase(object): method __init__ (line 176) | def __init__(self, n_env, traj_limit): method __check_integraty (line 188) | def __check_integraty(self, traj_frag): method batch_update (line 198) | def batch_update(self, traj_frag): method traj_remember (line 226) | def traj_remember(self, traj, key, content, frag_index, n_active): class BatchTrajManager (line 236) | class BatchTrajManager(TrajManagerBase): method __init__ (line 237) | def __init__(self, n_env, traj_limit, trainer_hook): method update (line 244) | def update(self, traj_frag, index): method feed_traj_framedata (line 263) | def feed_traj_framedata(self, traj_frag, require_hook=False): method clear_traj_pool (line 280) | def clear_traj_pool(self): method train_and_clear_traj_pool (line 289) | def train_and_clear_traj_pool(self): method can_exec_training (line 301) | def can_exec_training(self): method unlock_fn (line 305) | def unlock_fn(self, traj_frag): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/my_ai/foundation.py class AlgorithmConfig (line 6) | class AlgorithmConfig: class ReinforceAlgorithmFoundation (line 11) | class ReinforceAlgorithmFoundation(object): method __init__ (line 12) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 18) | def interact_with_env(self, StateRecall): class DiscreteRLFoundation (line 40) | class DiscreteRLFoundation(object): method __init__ (line 41) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 66) | def interact_with_env(self, StateRecall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/ccategorical.py function random_process (line 9) | def random_process(probs, rsn_flag): function random_process_allow_big_yita (line 32) | def random_process_allow_big_yita(probs, rsn_flag): function random_process_with_clamp3 (line 60) | def random_process_with_clamp3(probs, yita, yita_min_prob, rsn_flag): class CCategorical (line 84) | class CCategorical(): method __init__ (line 85) | def __init__(self, planner): method sample (line 90) | def sample(self, dist, eprsn): method register_rsn (line 94) | def register_rsn(self, rsn_flag): method feed_logits (line 97) | def feed_logits(self, logits): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/div_tree.py class DivTree (line 9) | class DivTree(nn.Module): # merge by MLP version method __init__ (line 10) | def __init__(self, input_dim, h_dim, n_action): method set_to_init_level (line 36) | def set_to_init_level(self, auto_transfer=True): method change_div_tree_level (line 43) | def change_div_tree_level(self, level, auto_transfer=True): method forward (line 64) | def forward(self, x_in, agent_ids): # x0: shape = (?,...,?, n_agent, ... function _2div (line 112) | def _2div(arr): function get_division_tree (line 142) | def get_division_tree(n_agents): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/foundation.py class AlgorithmConfig (line 7) | class AlgorithmConfig: function str_array_to_num (line 61) | def str_array_to_num(str_arr): function itemgetter (line 70) | def itemgetter(*items): class ReinforceAlgorithmFoundation (line 75) | class ReinforceAlgorithmFoundation(RLAlgorithmBase): method __init__ (line 76) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method action_making (line 120) | def action_making(self, StateRecall, test_mode): method interact_with_env (line 162) | def interact_with_env(self, StateRecall): method interact_with_env_genuine (line 170) | def interact_with_env_genuine(self, StateRecall): method train (line 178) | def train(self): method save_model (line 196) | def save_model(self, update_cnt, info=None): method load_model (line 224) | def load_model(self, AlgorithmConfig): method process_framedata (line 243) | def process_framedata(self, traj_framedata): method mask_paused_env (line 267) | def mask_paused_env(self, frag): method _create_config_fly (line 277) | def _create_config_fly(self): method _config_on_fly (line 283) | def _config_on_fly(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/net.py class Net (line 20) | class Net(nn.Module): method __init__ (line 21) | def __init__(self, rawob_dim, n_action, **kwargs): method act (line 64) | def act(self, *args, **kargs): method evaluate_actions (line 68) | def evaluate_actions(self, *args, **kargs): method _act (line 71) | def _act(self, obs=None, test_mode=None, eval_mode=False, eval_actions... method _logit2act_rsn (line 110) | def _logit2act_rsn(self, logits_agent_cluster, eval_mode, test_mode, e... method _logit2act (line 122) | def _logit2act(self, logits_agent_cluster, eval_mode, test_mode, eval_... method _get_act_log_probs (line 133) | def _get_act_log_probs(distribution, action): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/ppo.py class PPO (line 15) | class PPO(): method __init__ (line 16) | def __init__(self, policy_and_critic, ppo_config, mcv=None): method train_on_traj (line 48) | def train_on_traj(self, traj_pool, task): method train_on_traj_ (line 66) | def train_on_traj_(self, traj_pool, task): method freeze_body (line 99) | def freeze_body(self): method log_trivial (line 107) | def log_trivial(self, dictionary): method log_trivial_finalize (line 113) | def log_trivial_finalize(self, print=True): method establish_pytorch_graph (line 128) | def establish_pytorch_graph(self, flag, sample, n): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/ppo_sampler.py class TrajPoolSampler (line 12) | class TrajPoolSampler(): method __init__ (line 13) | def __init__(self, n_div, traj_pool, flag, prevent_batchsize_oom=False... method __len__ (line 60) | def __len__(self): method determine_max_n_sample (line 63) | def determine_max_n_sample(self): method reset_and_get_iter (line 80) | def reset_and_get_iter(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/shell_env.py class ShellEnvConfig (line 10) | class ShellEnvConfig: class ActionConvertPredatorPrey (line 13) | class ActionConvertPredatorPrey(): method __init__ (line 14) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 26) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 29) | def get_tp_avail_act(self, type): method confirm_parameters_are_correct (line 36) | def confirm_parameters_are_correct(self, team, agent_num, opp_agent_num): class ActionConvertLegacy (line 39) | class ActionConvertLegacy(): method __init__ (line 40) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 61) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 74) | def get_tp_avail_act(self, type): method confirm_parameters_are_correct (line 92) | def confirm_parameters_are_correct(self, team, agent_num, opp_agent_num): function count_list_type (line 98) | def count_list_type(x): class ShellEnvWrapper (line 107) | class ShellEnvWrapper(object): method __init__ (line 108) | def __init__(self, n_agent, n_thread, space, mcv, rl_functional, alg_c... method interact_with_env (line 140) | def interact_with_env(self, StateRecall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/stage_planner.py class PolicyRsnConfig (line 5) | class PolicyRsnConfig: class StagePlanner (line 16) | class StagePlanner: method __init__ (line 17) | def __init__(self, mcv) -> None: method is_resonance_active (line 28) | def is_resonance_active(self,): method is_body_freeze (line 31) | def is_body_freeze(self,): method get_yita (line 34) | def get_yita(self): method get_yita_min_prob (line 37) | def get_yita_min_prob(self): method can_exec_trainning (line 40) | def can_exec_trainning(self): method update_plan (line 43) | def update_plan(self): method activate_pr (line 52) | def activate_pr(self): method when_pr_inactive (line 58) | def when_pr_inactive(self): method when_pr_active (line 70) | def when_pr_active(self): method _update_yita (line 78) | def _update_yita(self): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/ppo_ma/trajectory.py class trajectory (line 11) | class trajectory(TRAJ_BASE): method __init__ (line 13) | def __init__(self, traj_limit, env_id): method early_finalize (line 17) | def early_finalize(self): method set_terminal_obs (line 21) | def set_terminal_obs(self, tobs): method cut_tail (line 24) | def cut_tail(self): method reward_push_forward (line 57) | def reward_push_forward(self, dead_mask): method finalize (line 75) | def finalize(self): method gae_finalize_return (line 106) | def gae_finalize_return(self, reward_key, value_key, new_return_name): class TrajPoolManager (line 146) | class TrajPoolManager(object): method __init__ (line 147) | def __init__(self): method absorb_finalize_pool (line 150) | def absorb_finalize_pool(self, pool): class TrajManagerBase (line 175) | class TrajManagerBase(object): method __init__ (line 176) | def __init__(self, n_env, traj_limit): method __check_integraty (line 188) | def __check_integraty(self, traj_frag): method batch_update (line 198) | def batch_update(self, traj_frag): method traj_remember (line 226) | def traj_remember(self, traj, key, content, frag_index, n_active): class BatchTrajManager (line 236) | class BatchTrajManager(TrajManagerBase): method __init__ (line 237) | def __init__(self, n_env, traj_limit, trainer_hook): method update (line 244) | def update(self, traj_frag, index): method feed_traj_framedata (line 263) | def feed_traj_framedata(self, traj_frag, require_hook=False): method clear_traj_pool (line 280) | def clear_traj_pool(self): method train_and_clear_traj_pool (line 289) | def train_and_clear_traj_pool(self): method can_exec_training (line 301) | def can_exec_training(self): method unlock_fn (line 305) | def unlock_fn(self, traj_frag): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/random/actionset.py class ActionConvertV1Dummy (line 8) | class ActionConvertV1Dummy(): method __init__ (line 9) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 20) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 23) | def get_tp_avail_act(self, type): method confirm_parameters_are_correct (line 41) | def confirm_parameters_are_correct(self, team, agent_num, opp_agent_num): class ActionConvertV1Carrier (line 49) | class ActionConvertV1Carrier(): method __init__ (line 50) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 78) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 81) | def get_tp_avail_act(self, type): method confirm_parameters_are_correct (line 99) | def confirm_parameters_are_correct(self, team, agent_num, opp_agent_num): class ActionConvertV1Momentum (line 107) | class ActionConvertV1Momentum(): method __init__ (line 108) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 126) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 129) | def get_tp_avail_act(self, type): method confirm_parameters_are_correct (line 136) | def confirm_parameters_are_correct(self, team, agent_num, opp_agent_num): class ActionConvertMovingV4 (line 143) | class ActionConvertMovingV4(): method __init__ (line 144) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 158) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 161) | def get_tp_avail_act(self, type): class CarrierAction (line 166) | class CarrierAction(): method __init__ (line 167) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 181) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 184) | def get_tp_avail_act(self, type): class ActionConvertV2 (line 189) | class ActionConvertV2(): method __init__ (line 190) | def __init__(self, SELF_TEAM_ASSUME, OPP_TEAM_ASSUME, OPP_NUM_ASSUME) ... method convert_act_arr (line 217) | def convert_act_arr(self, type, a): method get_tp_avail_act (line 220) | def get_tp_avail_act(self, type): method confirm_parameters_are_correct (line 238) | def confirm_parameters_are_correct(self, team, agent_num, opp_agent_num): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/random/foundation.py class AlgorithmConfig (line 6) | class AlgorithmConfig: class RandomController (line 16) | class RandomController(object): method __init__ (line 17) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 24) | def interact_with_env(self, StateRecall): class DummyRandomControllerWithActionSetV1 (line 33) | class DummyRandomControllerWithActionSetV1(object): method __init__ (line 35) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 48) | def interact_with_env(self, StateRecall): class RandomControllerWithActionSetV2 (line 63) | class RandomControllerWithActionSetV2(object): method __init__ (line 65) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 78) | def interact_with_env(self, StateRecall): class RandomControllerWithActionSetV4 (line 93) | class RandomControllerWithActionSetV4(object): method __init__ (line 95) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 108) | def interact_with_env(self, StateRecall): class RandomControllerWithActionSetV1 (line 124) | class RandomControllerWithActionSetV1(object): method __init__ (line 126) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 139) | def interact_with_env(self, StateRecall): class RandomControllerWithMomentumAgent (line 154) | class RandomControllerWithMomentumAgent(object): method __init__ (line 156) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 169) | def interact_with_env(self, StateRecall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/a_attackpost.py class AlgorithmConfig (line 7) | class AlgorithmConfig: class DummyAlgorithmBase (line 10) | class DummyAlgorithmBase(): method __init__ (line 11) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 18) | def forward(self, inp, state, mask=None): method to (line 21) | def to(self, device): method interact_with_env (line 24) | def interact_with_env(self, State_Recall): class AttackPostPreprogramBaseline (line 44) | class AttackPostPreprogramBaseline(DummyAlgorithmBase): method interact_with_env (line 45) | def interact_with_env(self, State_Recall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/a_escape.py class AlgorithmConfig (line 7) | class AlgorithmConfig: class DummyAlgorithmBase (line 10) | class DummyAlgorithmBase(): method __init__ (line 11) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 18) | def forward(self, inp, state, mask=None): method to (line 21) | def to(self, device): method interact_with_env (line 24) | def interact_with_env(self, State_Recall): class EscapeGreenPreprogramBaseline (line 44) | class EscapeGreenPreprogramBaseline(DummyAlgorithmBase): method interact_with_env (line 45) | def interact_with_env(self, State_Recall): class EscapeRedPreprogramBaseline (line 77) | class EscapeRedPreprogramBaseline(DummyAlgorithmBase): method interact_with_env (line 78) | def interact_with_env(self, State_Recall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/a_test_reproduce.py class AlgorithmConfig (line 7) | class AlgorithmConfig: class DummyAlgorithmBase (line 10) | class DummyAlgorithmBase(): method __init__ (line 11) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 18) | def forward(self, inp, state, mask=None): method to (line 21) | def to(self, device): method interact_with_env (line 24) | def interact_with_env(self, State_Recall): class TestReproduce (line 57) | class TestReproduce(DummyAlgorithmBase): method __init__ (line 58) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 61) | def interact_with_env(self, State_Recall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/assignment.py class TaskAssign (line 10) | class TaskAssign(object): method __init__ (line 12) | def __init__(self, attackers, drone, defenders): method assign_attack (line 24) | def assign_attack(self, attack_IDlist): method assign_drone_ini (line 65) | def assign_drone_ini(self, ): method judge_expeled (line 99) | def judge_expeled(self, ): method expel (line 191) | def expel(self, ): method assign_defend (line 202) | def assign_defend(self, def_ID): method is_retreat (line 241) | def is_retreat(self, att_ID, def_ID): method is_attack (line 263) | def is_attack(self, att_ID): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/blue_strategy.py function offense_combat (line 5) | def offense_combat(self_data, ally_agents_data, enemy_agents_data, key_p... FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/decision.py class decision (line 11) | class decision(): method __init__ (line 13) | def __init__(self, attackers, drone, defenders): method act (line 23) | def act(self, type=None): method attack_StateTrans (line 129) | def attack_StateTrans(self, ): method drone_StateTrans (line 184) | def drone_StateTrans(self, ): method defend_StateTrans (line 211) | def defend_StateTrans(self, ): function test (line 254) | def test(): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/dummy.py class DummyAlgConfig (line 4) | class DummyAlgConfig(): class DummyAlgorithmBase (line 7) | class DummyAlgorithmBase(): method __init__ (line 8) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 14) | def forward(self, inp, state, mask=None): method to (line 17) | def to(self, device): method interact_with_env (line 20) | def interact_with_env(self, State_Recall): class DummyAlgorithm (line 42) | class DummyAlgorithm(DummyAlgorithmBase): method interact_with_env (line 43) | def interact_with_env(self, State_Recall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/dummy_uhmap.py class DummyAlgConfig (line 16) | class DummyAlgConfig(): class DummyAlgorithmBase (line 20) | class DummyAlgorithmBase(): method __init__ (line 21) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 27) | def forward(self, inp, state, mask=None): method to (line 30) | def to(self, device): method interact_with_env (line 33) | def interact_with_env(self, State_Recall): class DummyAlgorithmT1 (line 56) | class DummyAlgorithmT1(DummyAlgorithmBase): method interact_with_env (line 57) | def interact_with_env(self, State_Recall): method interact_with_env_ (line 68) | def interact_with_env_(self, State_Recall): class DummyAlgorithmT2 (line 212) | class DummyAlgorithmT2(DummyAlgorithmBase): method interact_with_env (line 213) | def interact_with_env(self, State_Recall): method interact_with_env_ (line 224) | def interact_with_env_(self, State_Recall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/manual.py function to_cpu_numpy (line 9) | def to_cpu_numpy(x): class CoopAlgConfig (line 12) | class CoopAlgConfig(): class DummyAlgorithmFoundationHI3D (line 15) | class DummyAlgorithmFoundationHI3D(): method __init__ (line 16) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 36) | def forward(self, inp, state, mask=None): method to (line 39) | def to(self, device): method get_previous (line 42) | def get_previous(self, team_intel): method interact_with_env (line 47) | def interact_with_env(self, State_Recall): method get_action (line 82) | def get_action(self, action, attack_target, invader_pos, invader_vel, ... method dir_to_action3d (line 94) | def dir_to_action3d(vec, vel): method set_nearest_target (line 104) | def set_nearest_target(self, Env_Suffered_Reset, invader_pos, landmark... class DummyAlgorithmFoundationHI3D_old (line 115) | class DummyAlgorithmFoundationHI3D_old(): method __init__ (line 116) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 136) | def forward(self, inp, state, mask=None): method to (line 139) | def to(self, device): method get_previous (line 142) | def get_previous(self, team_intel): method interact_with_env (line 147) | def interact_with_env(self, State_Recall): method get_action (line 182) | def get_action(self, action, attack_target, invader_pos, invader_vel, ... method dir_to_action3d (line 194) | def dir_to_action3d(vec, vel): method set_random_target (line 250) | def set_random_target(self, Env_Suffered_Reset): class IHDummyAlgorithmFoundation (line 260) | class IHDummyAlgorithmFoundation(): method __init__ (line 261) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 277) | def forward(self, inp, state, mask=None): method to (line 280) | def to(self, device): method get_previous (line 283) | def get_previous(self, team_intel): method interact_with_env (line 307) | def interact_with_env(self, State_Recall): method get_action (line 337) | def get_action(action, attack_target, invader_pos, invader_vel, landma... method set_random_target (line 387) | def set_random_target(self, step_env_cnt_cnt): class DummyAlgorithmFoundation (line 399) | class DummyAlgorithmFoundation(): method __init__ (line 400) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 419) | def interact_with_env(self, team_intel): method get_previous (line 458) | def get_previous(self, team_intel): method dir_to_action (line 466) | def dir_to_action(vec, vel): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/module_evaluation.py class Evaluation_module (line 11) | class Evaluation_module(): method __init__ (line 12) | def __init__(self, critical_points=[[-3000, 700, 0], [700, -3300, 0]]): method SigmoidTen (line 26) | def SigmoidTen(self, x, c): method SigmoidNine (line 31) | def SigmoidNine(self, x, c): method UAV2Point (line 37) | def UAV2Point(self, p_position, position, velocity, phi, psi, ammo, he... method UAV2UAV (line 65) | def UAV2UAV(self, identity, a_position,a_ammo,a_health, position,veloc... method Drone2Point (line 99) | def Drone2Point(self, p_position,p_ts, position, velocity): method UAV2Point_id (line 117) | def UAV2Point_id(self, attacker_dict, key_point): method UAV2UAV_id (line 157) | def UAV2UAV_id(self, identity, attacker_dict, defender_dict): method Drone2Point_id (line 216) | def Drone2Point_id(self, drone_data, key_point): method defend_to_attack (line 242) | def defend_to_attack(self, self_data, ally_agents_data, enemy_agents_d... method attack_to_defend (line 298) | def attack_to_defend(self, self_data, ally_agents_data, enemy_agents_d... method uav_to_defend (line 354) | def uav_to_defend(self, self_data, ally_agents_data, enemy_agents_data... method evaluate (line 431) | def evaluate(self, self_data, ally_agents_data, enemy_agents_data, key... function test (line 440) | def test(): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/red_strategy.py function defense_combat (line 6) | def defense_combat(self_data, ally_agents_data, enemy_agents_data, key_p... FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/stance.py class Evaluation_module (line 11) | class Evaluation_module(): method __init__ (line 12) | def __init__(self, critical_points=[[-3, -0.7, 0], [0.7, 3.3, 0]]): method SigmoidTen (line 26) | def SigmoidTen(self, x, c): method SigmoidNine (line 31) | def SigmoidNine(self, x, c): method UAV2Point (line 37) | def UAV2Point(self, p_position, position, velocity, phi, psi, ammo, he... method UAV2UAV (line 65) | def UAV2UAV(self, identity, a_position,a_ammo,a_health, position,veloc... method Drone2Point (line 99) | def Drone2Point(self, p_position,p_ts, position, velocity): method UAV2Point_id (line 117) | def UAV2Point_id(self, attacker_dict, key_point): method UAV2UAV_id (line 155) | def UAV2UAV_id(self, identity, attacker_dict, defender_dict): method Drone2Point_id (line 207) | def Drone2Point_id(self, drone_data, key_point): method defend_to_attack (line 234) | def defend_to_attack(self, self_data, ally_agents_data, enemy_agents_d... method attack_to_defend (line 290) | def attack_to_defend(self, self_data, ally_agents_data, enemy_agents_d... method uav_to_defend (line 346) | def uav_to_defend(self, self_data, ally_agents_data, enemy_agents_data... method evaluate (line 423) | def evaluate(self, self_data, ally_agents_data, enemy_agents_data, key... FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/uhmap_bb.py class DummyAlgConfig (line 7) | class DummyAlgConfig(): class DummyAlgorithmBase (line 10) | class DummyAlgorithmBase(): method __init__ (line 11) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 17) | def forward(self, inp, state, mask=None): method to (line 20) | def to(self, device): method interact_with_env (line 23) | def interact_with_env(self, State_Recall): class DummyAlgorithmT2 (line 44) | class DummyAlgorithmT2(DummyAlgorithmBase): method interact_with_env (line 45) | def interact_with_env(self, State_Recall): class DummyAlgorithmT1 (line 105) | class DummyAlgorithmT1(DummyAlgorithmBase): method interact_with_env (line 106) | def interact_with_env(self, State_Recall): class DummyAlgorithmIdle (line 142) | class DummyAlgorithmIdle(DummyAlgorithmBase): method interact_with_env (line 143) | def interact_with_env(self, State_Recall): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/uhmap_island.py class DummyAlgConfig (line 8) | class DummyAlgConfig(): class DummyAlgorithmBase (line 11) | class DummyAlgorithmBase(): method __init__ (line 12) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 25) | def forward(self, inp, state, mask=None): method to (line 28) | def to(self, device): method interact_with_env (line 31) | def interact_with_env(self, State_Recall): class DummyAlgorithmIdle (line 54) | class DummyAlgorithmIdle(DummyAlgorithmBase): method interact_with_env (line 63) | def interact_with_env(self, State_Recall): method DeltaLocation2Angle (line 268) | def DeltaLocation2Angle(self, delta_x, delta_y): method TargetAngle2Action (line 291) | def TargetAngle2Action(self, target_yaw): method TargetHeight2Action (line 311) | def TargetHeight2Action(self, target_height): class ActionDictionary (line 330) | class ActionDictionary(): method select_act (line 364) | def select_act(type, a): method get_avail_act (line 370) | def get_avail_act(): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/uhmap_ls.py class DummyAlgConfig (line 8) | class DummyAlgConfig(): class DummyAlgorithmBase (line 11) | class DummyAlgorithmBase(): method __init__ (line 12) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 20) | def forward(self, inp, state, mask=None): method to (line 23) | def to(self, device): method interact_with_env (line 26) | def interact_with_env(self, State_Recall): class DummyAlgorithmSeqFire (line 48) | class DummyAlgorithmSeqFire(DummyAlgorithmBase): method interact_with_env (line 49) | def interact_with_env(self, State_Recall): class DummyAlgorithmIdle (line 101) | class DummyAlgorithmIdle(DummyAlgorithmBase): method interact_with_env (line 102) | def interact_with_env(self, State_Recall): class DummyAlgorithmMarch (line 137) | class DummyAlgorithmMarch(DummyAlgorithmBase): method interact_with_env (line 138) | def interact_with_env(self, State_Recall): function assign_opponent (line 189) | def assign_opponent(opp_pos_arr, opp_id_arr, leader_pos_arr, leader_id_a... class DummyAlgorithmLinedAttack (line 199) | class DummyAlgorithmLinedAttack(DummyAlgorithmBase): method interact_with_env (line 200) | def interact_with_env(self, State_Recall): method uid_alive (line 230) | def uid_alive(raw_info, uid): method decide_each_thread (line 233) | def decide_each_thread(self, **kwargs): function vector_shift_towards (line 302) | def vector_shift_towards(pos, toward_pos, offset): FILE: PythonExample/hmp_minimal_modules/ALGORITHM/script_ai/uhmap_ls_mp.py class DummyAlgConfig (line 8) | class DummyAlgConfig(): class DummyAlgorithmBase (line 11) | class DummyAlgorithmBase(): method __init__ (line 12) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method forward (line 20) | def forward(self, inp, state, mask=None): method to (line 23) | def to(self, device): method interact_with_env (line 26) | def interact_with_env(self, State_Recall): class DummyAlgorithmSeqFire (line 48) | class DummyAlgorithmSeqFire(DummyAlgorithmBase): method interact_with_env (line 49) | def interact_with_env(self, State_Recall): class DummyAlgorithmIdle (line 101) | class DummyAlgorithmIdle(DummyAlgorithmBase): method interact_with_env (line 102) | def interact_with_env(self, State_Recall): class DummyAlgorithmMarch (line 137) | class DummyAlgorithmMarch(DummyAlgorithmBase): method interact_with_env (line 138) | def interact_with_env(self, State_Recall): function assign_opponent (line 189) | def assign_opponent(opp_pos_arr, opp_id_arr, leader_pos_arr, leader_id_a... class ThreadDecisionMaker (line 202) | class ThreadDecisionMaker(): method apply_context (line 204) | def apply_context(self, kwargs): method decide_each_thread (line 208) | def decide_each_thread(self, kwargs): class DummyAlgorithmLinedAttack (line 280) | class DummyAlgorithmLinedAttack(DummyAlgorithmBase): method __init__ (line 281) | def __init__(self, n_agent, n_thread, space, mcv=None, team=None): method interact_with_env (line 296) | def interact_with_env(self, State_Recall): method uid_alive (line 330) | def uid_alive(raw_info, uid): function vector_shift_towards (line 335) | def vector_shift_towards(pos, toward_pos, offset): FILE: PythonExample/hmp_minimal_modules/MISSION/common/base_env.py class BaseEnv (line 2) | class BaseEnv(object): method __init__ (line 3) | def __init__(self, rank) -> None: method step (line 8) | def step(self, act): method reset (line 23) | def reset(self): class RawObsArray (line 30) | class RawObsArray(object): method __init__ (line 32) | def __init__(self, key='default'): method append (line 42) | def append(self, buf): method get (line 50) | def get(self): method get_group_size (line 56) | def get_group_size(self): method get_raw_obs_size (line 59) | def get_raw_obs_size(self): FILE: PythonExample/hmp_minimal_modules/MISSION/env_router.py function load_ScenarioConfig (line 42) | def load_ScenarioConfig(): function make_env_function (line 49) | def make_env_function(env_name, rank): function make_parallel_envs (line 66) | def make_parallel_envs(process_pool, marker=''): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/SubtaskCommonFn.py class UhmapCommonFn (line 14) | class UhmapCommonFn(UhmapEnv): method reset (line 16) | def reset(self): method step (line 64) | def step(self, act): method parse_event (line 106) | def parse_event(self, event): method extract_key_gameobj (line 117) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 124) | def gen_reward_and_win(self, resp): method step_skip (line 165) | def step_skip(self): method find_agent_by_uid (line 174) | def find_agent_by_uid(self, uid): method parse_response_ob_info (line 187) | def parse_response_ob_info(self, resp): method item_random_mv (line 234) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 245) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 255) | def make_obs(self, resp=None, get_shape=False): method init_ship (line 423) | def init_ship(self, agent_info, pos_ro): method init_waterdrop (line 461) | def init_waterdrop(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapAdversial.py class UhmapAdversial (line 16) | class UhmapAdversial(UhmapCommonFn, UhmapEnv): method __init__ (line 17) | def __init__(self, rank) -> None: method extract_key_gameobj (line 26) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 31) | def gen_reward_and_win(self, resp): method item_random_mv (line 79) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 90) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 100) | def make_obs(self, resp=None, get_shape=False): method init_ground (line 278) | def init_ground(self, agent_info, pos_ro): method init_ground_tank (line 331) | def init_ground_tank(self, agent_info, pos_ro): method init_air (line 384) | def init_air(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapAdversialConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapAttackPost.py function init_position_helper (line 11) | def init_position_helper(x_max, x_min, y_max, y_min, total, this): class UhmapAttackPost (line 23) | class UhmapAttackPost(UhmapEnv): method __init__ (line 24) | def __init__(self, rank) -> None: method reset (line 32) | def reset(self): method step (line 79) | def step(self, act): method parse_event (line 121) | def parse_event(self, event): method extract_key_gameobj (line 132) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 139) | def gen_reward_and_win(self, resp): method step_skip (line 180) | def step_skip(self): method find_agent_by_uid (line 189) | def find_agent_by_uid(self, uid): method parse_response_ob_info (line 202) | def parse_response_ob_info(self, resp): method item_random_mv (line 249) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 260) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 270) | def make_obs(self, resp=None, get_shape=False): method init_defence (line 437) | def init_defence(self, agent_info, pos_ro): method init_attack (line 475) | def init_attack(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapAttackPostConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapBreakingBad.py class SubTaskConfig (line 10) | class SubTaskConfig(): class UhmapBreakingBad (line 13) | class UhmapBreakingBad(UhmapEnv): method __init__ (line 14) | def __init__(self, rank) -> None: method reset (line 21) | def reset(self): method step (line 116) | def step(self, act): method parse_event (line 152) | def parse_event(self, event): method extract_key_gameobj (line 156) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 161) | def gen_reward_and_win(self, resp): method step_skip (line 212) | def step_skip(self): method find_agent_by_uid (line 219) | def find_agent_by_uid(self, uid): method parse_response_ob_info (line 229) | def parse_response_ob_info(self, resp): method item_random_mv (line 248) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 259) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 270) | def make_obs(self, resp=None, get_shape=False): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapBreakingBadConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapCarrier.py class UhmapCarrier (line 16) | class UhmapCarrier(UhmapCommonFn, UhmapEnv): method __init__ (line 17) | def __init__(self, rank) -> None: method extract_key_gameobj (line 26) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 31) | def gen_reward_and_win(self, resp): method item_random_mv (line 79) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 90) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 100) | def make_obs(self, resp=None, get_shape=False): method init_drone (line 277) | def init_drone(self, agent_info, pos_ro): method init_carrier (line 331) | def init_carrier(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapCarrierConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapEscape.py function init_position_helper (line 11) | def init_position_helper(x_max, x_min, y_max, y_min, total, this): class UhmapEscape (line 23) | class UhmapEscape(UhmapEnv): method __init__ (line 24) | def __init__(self, rank) -> None: method reset (line 32) | def reset(self): method step (line 79) | def step(self, act): method parse_event (line 121) | def parse_event(self, event): method extract_key_gameobj (line 132) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 139) | def gen_reward_and_win(self, resp): method step_skip (line 183) | def step_skip(self): method find_agent_by_uid (line 192) | def find_agent_by_uid(self, uid): method parse_response_ob_info (line 205) | def parse_response_ob_info(self, resp): method item_random_mv (line 252) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 263) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 273) | def make_obs(self, resp=None, get_shape=False): method init_defence (line 437) | def init_defence(self, agent_info, pos_ro): method init_attack (line 483) | def init_attack(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapEscapeConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapFormation.py class UhmapFormation (line 15) | class UhmapFormation(UhmapCommonFn, UhmapEnv): method __init__ (line 16) | def __init__(self, rank) -> None: method extract_key_gameobj (line 25) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 30) | def gen_reward_and_win(self, resp): method item_random_mv (line 78) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 89) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 98) | def make_obs(self, resp=None, get_shape=False): method init_drone (line 275) | def init_drone(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapFormationConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapHuge.py class UhmapHuge (line 16) | class UhmapHuge(UhmapCommonFn, UhmapEnv): method __init__ (line 17) | def __init__(self, rank) -> None: method extract_key_gameobj (line 26) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 31) | def gen_reward_and_win(self, resp): method item_random_mv (line 79) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 90) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 100) | def make_obs(self, resp=None, get_shape=False): method init_ground (line 276) | def init_ground(self, agent_info, pos_ro): method init_air (line 329) | def init_air(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapHugeConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapIntercept.py class UhmapIntercept (line 11) | class UhmapIntercept(UhmapEnv): method __init__ (line 12) | def __init__(self, rank) -> None: method reset (line 20) | def reset(self): method step (line 67) | def step(self, act): method parse_event (line 109) | def parse_event(self, event): method extract_key_gameobj (line 120) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 127) | def gen_reward_and_win(self, resp): method step_skip (line 168) | def step_skip(self): method find_agent_by_uid (line 177) | def find_agent_by_uid(self, uid): method parse_response_ob_info (line 190) | def parse_response_ob_info(self, resp): method item_random_mv (line 237) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 248) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 258) | def make_obs(self, resp=None, get_shape=False): method init_landmark (line 426) | def init_landmark(self, agent_info, pos_ro): method init_defender (line 460) | def init_defender(self, agent_info, pos_ro): method init_attacker (line 495) | def init_attacker(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapInterceptConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapJustAnIsland.py class UhmapJustAnIsland (line 14) | class UhmapJustAnIsland(UhmapCommonFn, UhmapEnv): method __init__ (line 15) | def __init__(self, rank) -> None: method extract_key_gameobj (line 25) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 32) | def gen_reward_and_win(self, resp): method item_random_mv (line 61) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 72) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 82) | def make_obs(self, resp=None, get_shape=False): method init_ground (line 255) | def init_ground(self, agent_info, pos_ro): method init_air (line 308) | def init_air(self, agent_info, pos_ro): method init_target (line 404) | def init_target(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapJustAnIslandConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapLargeScale.py class UhmapLargeScale (line 16) | class UhmapLargeScale(UhmapCommonFn, UhmapEnv): method __init__ (line 17) | def __init__(self, rank) -> None: method extract_key_gameobj (line 26) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 31) | def gen_reward_and_win(self, resp): method item_random_mv (line 79) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 90) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 100) | def make_obs(self, resp=None, get_shape=False): method init_ground (line 278) | def init_ground(self, agent_info, pos_ro): method init_air (line 331) | def init_air(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapLargeScaleConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapPreyPredator.py class UhmapPreyPredator (line 15) | class UhmapPreyPredator(UhmapCommonFn, UhmapEnv): method __init__ (line 16) | def __init__(self, rank) -> None: method init_ground (line 25) | def init_ground(self, agent_info, pos_ro): method extract_key_gameobj (line 66) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 73) | def gen_reward_and_win(self, resp): method item_random_mv (line 119) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 130) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 140) | def make_obs(self, resp=None, get_shape=False): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapPreyPredatorConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapReproduce.py function init_position_helper (line 11) | def init_position_helper(x_max, x_min, y_max, y_min, total, this): class UhmapReproduce (line 23) | class UhmapReproduce(UhmapEnv): method __init__ (line 24) | def __init__(self, rank) -> None: method reset (line 32) | def reset(self): method step (line 79) | def step(self, act): method parse_event (line 121) | def parse_event(self, event): method extract_key_gameobj (line 132) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 139) | def gen_reward_and_win(self, resp): method step_skip (line 162) | def step_skip(self): method find_agent_by_uid (line 171) | def find_agent_by_uid(self, uid): method parse_response_ob_info (line 184) | def parse_response_ob_info(self, resp): method item_random_mv (line 231) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 242) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 252) | def make_obs(self, resp=None, get_shape=False): method init_attack (line 421) | def init_attack(self, agent_info, pos_ro): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapReproduceConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapWaterdrop.py class UhmapWaterdrop (line 15) | class UhmapWaterdrop(UhmapCommonFn, UhmapEnv): method __init__ (line 16) | def __init__(self, rank) -> None: method init_ship (line 24) | def init_ship(self, agent_info, pos_ro): method init_waterdrop (line 60) | def init_waterdrop(self, agent_info, pos_ro): method extract_key_gameobj (line 96) | def extract_key_gameobj(self, resp): method gen_reward_and_win (line 103) | def gen_reward_and_win(self, resp): method item_random_mv (line 146) | def item_random_mv(src,dst,prob,rand=False): method get_binary_array (line 157) | def get_binary_array(n_int, n_bits=8, dtype=np.float32): method make_obs (line 167) | def make_obs(self, resp=None, get_shape=False): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/SubTasks/UhmapWaterdropConf.py class SubTaskConfig (line 2) | class SubTaskConfig(): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/actionset.py function strActionToDigits (line 3) | def strActionToDigits(act_string): function digitsToStrAction (line 10) | def digitsToStrAction(digits): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/actionset_v3.py function strActionToDigits (line 3) | def strActionToDigits(act_string): function digitsToStrAction (line 10) | def digitsToStrAction(digits): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/actset_lookup.py function encode_action_as_digits (line 73) | def encode_action_as_digits(main_cmd, sub_cmd, x=None, y=None, z=None, U... function decode_action_as_string (line 111) | def decode_action_as_string(digits): function binary_friendly (line 211) | def binary_friendly(x): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/agent.py class Agent (line 4) | class Agent(object): method __init__ (line 5) | def __init__(self, team, team_id, uid) -> None: method update_agent_attrs (line 14) | def update_agent_attrs(self, dictionary): FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/auto_download.py function download_from_shared_server (line 7) | def download_from_shared_server(key = 'cat'): function download_client_binary_on_platform (line 29) | def download_client_binary_on_platform(desired_path, desired_version, is... function download_client_binary (line 41) | def download_client_binary(desired_path, desired_version, is_render_clie... FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/struct.cpp type FAgentProperty (line 9) | struct FAgentProperty type FParsedDataInput (line 89) | struct FParsedDataInput type FAgentDataOutput (line 130) | struct FAgentDataOutput type FKeyObjDataOutput (line 199) | struct FKeyObjDataOutput type FGlobalDataOutput (line 240) | struct FGlobalDataOutput type FAgentDataOutputArr (line 298) | struct FAgentDataOutputArr FILE: PythonExample/hmp_minimal_modules/MISSION/uhmap/uhmap_env_wrapper.py function make_uhmap_env (line 12) | def make_uhmap_env(env_id, rank): function get_subtask_conf (line 21) | def get_subtask_conf(subtask): function usual_id_arrangment (line 30) | def usual_id_arrangment(N_AGENT_EACH_TEAM): class ScenarioConfig (line 44) | class ScenarioConfig(object): class UhmapEnvParseHelper (line 136) | class UhmapEnvParseHelper: method parse_response_ob_info (line 137) | def parse_response_ob_info(self, response): method make_obs (line 140) | def make_obs(self): class UhmapEnv (line 144) | class UhmapEnv(BaseEnv, UhmapEnvParseHelper): method __init__ (line 145) | def __init__(self, rank) -> None: method __del__ (line 179) | def __del__(self): method activate_simulation (line 182) | def activate_simulation(self, rank, find_port=True): method terminate_simulation (line 324) | def terminate_simulation(self): method reset (line 341) | def reset(self): method sleep (line 349) | def sleep(self): method step (line 354) | def step(self, act): FILE: PythonExample/hmp_minimal_modules/UTIL/auto_gpu.py class sel_gpu (line 18) | class sel_gpu(): method __init__ (line 29) | def __init__(self,qargs=[]): method _sort_by_memory (line 36) | def _sort_by_memory(self,gpus,by_size=False): method _sort_by_power (line 53) | def _sort_by_power(self,gpus): method _sort_by_custom (line 56) | def _sort_by_custom(self,gpus,key,reverse=False,qargs=[]): method auto_choice (line 63) | def auto_choice(self,mode=0): method check_gpus (line 104) | def check_gpus(): method parse (line 124) | def parse(line,qargs): method query_gpu (line 141) | def query_gpu(self, qargs=[]): method by_power (line 157) | def by_power(d): FILE: PythonExample/hmp_minimal_modules/UTIL/batch_exp.py function get_info (line 8) | def get_info(script_path): function run_batch_exp (line 21) | def run_batch_exp(sum_note, n_run, n_run_mode, base_conf, conf_override,... FILE: PythonExample/hmp_minimal_modules/UTIL/colorful.py function print红 (line 11) | def print红(*kw,**kargs): function print绿 (line 13) | def print绿(*kw,**kargs): function print黄 (line 15) | def print黄(*kw,**kargs): function print蓝 (line 17) | def print蓝(*kw,**kargs): function print紫 (line 19) | def print紫(*kw,**kargs): function print靛 (line 21) | def print靛(*kw,**kargs): function print亮红 (line 24) | def print亮红(*kw,**kargs): function print亮绿 (line 26) | def print亮绿(*kw,**kargs): function print亮黄 (line 28) | def print亮黄(*kw,**kargs): function print亮蓝 (line 30) | def print亮蓝(*kw,**kargs): function print亮紫 (line 32) | def print亮紫(*kw,**kargs): function print亮靛 (line 34) | def print亮靛(*kw,**kargs): function print亮红 (line 39) | def print亮红(*kw,**kargs): function print亮绿 (line 41) | def print亮绿(*kw,**kargs): function print亮黄 (line 43) | def print亮黄(*kw,**kargs): function print亮蓝 (line 45) | def print亮蓝(*kw,**kargs): function print亮紫 (line 47) | def print亮紫(*kw,**kargs): function print亮靛 (line 49) | def print亮靛(*kw,**kargs): FILE: PythonExample/hmp_minimal_modules/UTIL/config_args.py class ChainVar (line 12) | class ChainVar(object): method __init__ (line 13) | def __init__(self, chain_func, chained_with): function is_chained_key (line 18) | def is_chained_key(key): function prepare_args (line 31) | def prepare_args(vb=True): function load_config_via_json (line 73) | def load_config_via_json(json_data, vb): function override_config_file (line 84) | def override_config_file(cfg_group, new_cfg, vb): function secure_chained_vars (line 106) | def secure_chained_vars(default_cfg, new_cfg, vb): function check_config_relevence (line 131) | def check_config_relevence(json_data): function random_seed_warning (line 140) | def random_seed_warning(json_data): function prepare_tmp_folder (line 146) | def prepare_tmp_folder(): function prepare_alg_tmp_folder (line 155) | def prepare_alg_tmp_folder(json_data): function register_machine_info (line 197) | def register_machine_info(logdir): function backup_files (line 214) | def backup_files(files, logdir, jsonfile): function check_experiment_log_path (line 235) | def check_experiment_log_path(logdir): function askChoice (line 250) | def askChoice(): function arg_summary (line 253) | def arg_summary(config_class, modify_dict = {}, altered_cv = []): function my_setattr (line 266) | def my_setattr(conf_class, key, new_value, vb): function find_all_conf (line 297) | def find_all_conf(): function make_json (line 319) | def make_json(conf_list): FILE: PythonExample/hmp_minimal_modules/UTIL/data_struct.py class UniqueList (line 3) | class UniqueList(): method __init__ (line 4) | def __init__(self, list_input=None): method append_unique (line 9) | def append_unique(self, item): method extend_unique (line 15) | def extend_unique(self, list_input): method has (line 19) | def has(self, item): method len (line 22) | def len(self): method __len__ (line 25) | def __len__(self): method get (line 28) | def get(self): method __iter__ (line 31) | def __iter__(self): function remove_suffix (line 39) | def remove_suffix(s, sub): function remove_prefix (line 42) | def remove_prefix(s, sub): FILE: PythonExample/hmp_minimal_modules/UTIL/exp_helper.py function singleton (line 5) | def singleton(cls): class ChainVar (line 15) | class ChainVar(object): method __init__ (line 16) | def __init__(self, chain_func, chained_with): class DataCentralServer (line 20) | class DataCentralServer(object): # ADD_TO_CONF_SYSTEM //DO NOT remove th... class changed (line 27) | class changed(): method __init__ (line 28) | def __init__(self): method check (line 31) | def check(self, value, key): class MySFTPClient (line 48) | class MySFTPClient(paramiko.SFTPClient): method put_dir (line 49) | def put_dir(self, source, target, ignore_list=[]): method isfile (line 63) | def isfile(self, path): method get_dir (line 70) | def get_dir(self, source, target, ignore_list=[]): method mkdir (line 87) | def mkdir(self, path, mode=511, ignore_existing=False): function get_ssh_sftp (line 101) | def get_ssh_sftp(addr, usr, pwd): function upload_exp (line 112) | def upload_exp(cfg): # shell it to catch error function upload_exp_ (line 116) | def upload_exp_(cfg): FILE: PythonExample/hmp_minimal_modules/UTIL/file_lock.py class FileLock (line 4) | class FileLock(FileLockBase): method __init__ (line 5) | def __init__(self, lock_file, timeout: float = -1) -> None: function is_file_empty (line 10) | def is_file_empty(file_path): FILE: PythonExample/hmp_minimal_modules/UTIL/gpu_eater.py function validate_path (line 1) | def validate_path(): function check_devices_mem (line 16) | def check_devices_mem(): function occupy_device_mem (line 33) | def occupy_device_mem(cuda_device, mem_info, free=1024): function occupy_gpus_mem (line 49) | def occupy_gpus_mem(free=4096): class GPU_Eater (line 55) | class GPU_Eater(Process): method __init__ (line 56) | def __init__(self, unix_path, party): method __del__ (line 70) | def __del__(self): method run_timer (line 75) | def run_timer(self): method release_gpu (line 84) | def release_gpu(self): method hold_gpu (line 88) | def hold_gpu(self): method on_receive_data (line 92) | def on_receive_data(self, data): method run (line 113) | def run(self): FILE: PythonExample/hmp_minimal_modules/UTIL/gpu_share.py function pid_exist (line 5) | def pid_exist(pid_str): function read_json (line 9) | def read_json(fp): function write_json (line 22) | def write_json(fp, buf): function create_eater (line 27) | def create_eater(unix_path): class GpuHolder (line 35) | class GpuHolder(): method __init__ (line 36) | def __init__(self, device) -> None: method __del__ (line 53) | def __del__(self): method need_gpu (line 58) | def need_gpu(self): method giveup_gpu (line 62) | def giveup_gpu(self): class GpuShareUnit (line 67) | class GpuShareUnit(): method __init__ (line 69) | def __init__(self, which_gpu, lock_path=None, manual_gpu_ctl=True, gpu... method __del__ (line 93) | def __del__(self): method __enter__ (line 109) | def __enter__(self): method __exit__ (line 113) | def __exit__(self, exc_type, exc_value, traceback): method get_gpu_lock (line 116) | def get_gpu_lock(self): method release_gpu_lock (line 128) | def release_gpu_lock(self): method register_pid (line 138) | def register_pid(self): method unregister_pid (line 160) | def unregister_pid(self): FILE: PythonExample/hmp_minimal_modules/UTIL/hidden_print.py class HiddenPrints (line 2) | class HiddenPrints: method __enter__ (line 3) | def __enter__(self): method __exit__ (line 7) | def __exit__(self, exc_type, exc_val, exc_tb): FILE: PythonExample/hmp_minimal_modules/UTIL/hmp_daemon.py function kill_process (line 4) | def kill_process(p): function kill_process_and_its_children (line 23) | def kill_process_and_its_children(p): function kill_process_children (line 38) | def kill_process_children(p): function clean_child_process (line 51) | def clean_child_process(pid): function hmp_clean_up (line 56) | def hmp_clean_up(): function start_periodic_daemon (line 65) | def start_periodic_daemon(cfg): function periodic_daemon (line 78) | def periodic_daemon(cfg): function periodic_daemon_ (line 91) | def periodic_daemon_(cfg): FILE: PythonExample/hmp_minimal_modules/UTIL/legacy/gpu_share_unfin.py class GpuShareUnit (line 4) | class GpuShareUnit(): method __init__ (line 5) | def __init__(self, which_gpu, lock_path=None, manual_gpu_ctl=True, gpu... method __exit__ (line 22) | def __exit__(self, exc_type, exc_value, traceback): method __enter__ (line 26) | def __enter__(self): method __del__ (line 30) | def __del__(self): method _get_gpu_locks (line 33) | def _get_gpu_locks(self): method __find_all_active_party (line 42) | def __find_all_active_party(self, device): method __get_gpu_lock (line 55) | def __get_gpu_lock(self, device, gpu_party): method release_gpu_lock (line 66) | def release_gpu_lock(self): method ___get_party_n_share (line 77) | def ___get_party_n_share(self, device, gpu_party): method register_uuid_ (line 88) | def register_uuid_(self, device, gpu_party): method unregister_uuids_ (line 105) | def unregister_uuids_(self, device, gpu_party): method unregister_uuid__ (line 114) | def unregister_uuid__(self, device, gpu_party): method req_all_party (line 125) | def req_all_party(self): FILE: PythonExample/hmp_minimal_modules/UTIL/mem_watcher_ue.py function validate_path (line 1) | def validate_path(): function thread_dfs (line 16) | def thread_dfs(p, depth=0, info=None): function print_info (line 40) | def print_info(depth, pp, info=None): function find_procs_by_name (line 56) | def find_procs_by_name(name): function main (line 75) | def main(root_name = 'UE4Editor.exe'): FILE: PythonExample/hmp_minimal_modules/UTIL/memleak_finder.py function memdb_print_diff (line 4) | def memdb_print_diff(): FILE: PythonExample/hmp_minimal_modules/UTIL/mprofile.py function worker (line 165) | def worker(ith_run): function clean_process (line 171) | def clean_process(pid): function clean_up (line 184) | def clean_up(): FILE: PythonExample/hmp_minimal_modules/UTIL/network.py function check_pid (line 5) | def check_pid(pid): function find_free_port (line 16) | def find_free_port(): function find_free_port_no_repeat (line 24) | def find_free_port_no_repeat(): function get_host_ip (line 81) | def get_host_ip(): class UdpServer (line 95) | class UdpServer: method __init__ (line 96) | def __init__(self, ip_port, obj='bytes') -> None: method wait_next_dgram (line 105) | def wait_next_dgram(self): method reply_last_client (line 112) | def reply_last_client(self, data): method __del__ (line 120) | def __del__(self): class UdpTargetedClient (line 124) | class UdpTargetedClient: method __init__ (line 125) | def __init__(self, target_ip_port, obj='bytes') -> None: method send_dgram_to_target (line 132) | def send_dgram_to_target(self, data): method send_and_wait_reply (line 139) | def send_and_wait_reply(self, data): class UnixUdpServer (line 170) | class UnixUdpServer: method __init__ (line 171) | def __init__(self, unix_path, obj='bytes') -> None: method wait_next_dgram (line 182) | def wait_next_dgram(self): method reply_last_client (line 190) | def reply_last_client(self, data): method __del__ (line 198) | def __del__(self): class UnixUdpTargetedClient (line 203) | class UnixUdpTargetedClient: method __init__ (line 204) | def __init__(self, target_unix_path, self_unix_path=None, obj='bytes')... method send_dgram_to_target (line 216) | def send_dgram_to_target(self, data): method send_and_wait_reply (line 223) | def send_and_wait_reply(self, data): method __del__ (line 233) | def __del__(self): class StreamingPackageSep (line 262) | class StreamingPackageSep: method __init__ (line 263) | def __init__(self): method lower_send (line 268) | def lower_send(self, data, connection): method lowest_recv (line 274) | def lowest_recv(self, connection): method lower_recv (line 304) | def lower_recv(self, connection, expect_single=True): method handle_flag_breakdown (line 313) | def handle_flag_breakdown(self): class UnixTcpServerP2P (line 325) | class UnixTcpServerP2P(StreamingPackageSep): method __init__ (line 326) | def __init__(self, unix_path, obj='bytes') -> None: method accept_conn (line 339) | def accept_conn(self): method wait_next_dgram (line 343) | def wait_next_dgram(self): method reply_last_client (line 352) | def reply_last_client(self, data): method __del__ (line 360) | def __del__(self): class UnixTcpServerMultiClient (line 367) | class UnixTcpServerMultiClient(StreamingPackageSep): method __init__ (line 368) | def __init__(self, unix_path, obj='bytes') -> None: method serve_clients (line 382) | def serve_clients(self, most_recent_client): method be_online (line 393) | def be_online(self): method __del__ (line 400) | def __del__(self): class UnixTcpClientP2P (line 406) | class UnixTcpClientP2P(StreamingPackageSep): method __init__ (line 407) | def __init__(self, target_unix_path, self_unix_path=None, obj='bytes')... method send_dgram_to_target (line 421) | def send_dgram_to_target(self, data): method send_and_wait_reply (line 429) | def send_and_wait_reply(self, data): method __del__ (line 440) | def __del__(self): class TcpServerP2P (line 480) | class TcpServerP2P(StreamingPackageSep): method __init__ (line 481) | def __init__(self, ip_port, obj='bytes') -> None: method accept_conn (line 492) | def accept_conn(self): method manual_wait_connection (line 496) | def manual_wait_connection(self): method wait_next_dgram (line 501) | def wait_next_dgram(self): method wait_multi_dgrams (line 510) | def wait_multi_dgrams(self): method reply_last_client (line 519) | def reply_last_client(self, data): method __del__ (line 527) | def __del__(self): method close (line 531) | def close(self): class TcpClientP2P (line 534) | class TcpClientP2P(StreamingPackageSep): method __init__ (line 535) | def __init__(self, target_ip_port, self_ip_port=None, obj='bytes') -> ... method send_dgram_to_target (line 544) | def send_dgram_to_target(self, data): method manual_connect (line 552) | def manual_connect(self): method send_and_wait_reply (line 555) | def send_and_wait_reply(self, data): method __del__ (line 566) | def __del__(self): method close (line 570) | def close(self): class TcpClientP2PWithCompress (line 590) | class TcpClientP2PWithCompress(StreamingPackageSep): method __init__ (line 591) | def __init__(self, target_ip_port, self_ip_port=None, obj='bytes') -> ... method decompress (line 603) | def decompress(self, data): method compress (line 614) | def compress(self, data): method send_dgram_to_target (line 618) | def send_dgram_to_target(self, data): method manual_connect (line 627) | def manual_connect(self): method send_and_wait_reply (line 630) | def send_and_wait_reply(self, data): method __del__ (line 642) | def __del__(self): method close (line 646) | def close(self): class QueueOnTcpClient (line 649) | class QueueOnTcpClient(): method __init__ (line 650) | def __init__(self, ip): method send_str (line 658) | def send_str(self, b_msg): method close (line 661) | def close(self): method __del__ (line 664) | def __del__(self): class QueueOnTcpServer (line 667) | class QueueOnTcpServer(): method __init__ (line 668) | def __init__(self, ip_port): method wait_connection (line 675) | def wait_connection(self): method listening_thread (line 681) | def listening_thread(self): method set_handler (line 689) | def set_handler(self, handler): method get_queue (line 692) | def get_queue(self): method recv (line 697) | def recv(self): method close (line 700) | def close(self): method __del__ (line 703) | def __del__(self): FILE: PythonExample/hmp_minimal_modules/UTIL/pip_find_missing.py function print红 (line 5) | def print红(*kw): function print绿 (line 7) | def print绿(*kw): function print黄 (line 9) | def print黄(*kw): function print蓝 (line 11) | def print蓝(*kw): function print紫 (line 13) | def print紫(*kw): function print靛 (line 15) | def print靛(*kw): function printX (line 17) | def printX(*kw): function install (line 21) | def install(package): function print红 (line 37) | def print红(*kw): function print绿 (line 39) | def print绿(*kw): function print黄 (line 41) | def print黄(*kw): function print蓝 (line 43) | def print蓝(*kw): function print紫 (line 45) | def print紫(*kw): function print靛 (line 47) | def print靛(*kw): function 是否为工程内的文件交叉调用 (line 67) | def 是否为工程内的文件交叉调用(包,python_file): function config_anaconda (line 237) | def config_anaconda(): FILE: PythonExample/hmp_minimal_modules/UTIL/shm_env.py class EnvWithRay (line 21) | class EnvWithRay(object): method __init__ (line 22) | def __init__(self, env_args_dict): method __del__ (line 32) | def __del__(self): method step (line 37) | def step(self, act): method dict_update (line 70) | def dict_update(self, info, info_reset): method reset (line 76) | def reset(self): method sleep (line 79) | def sleep(self): method render (line 82) | def render(self): method close (line 85) | def close(self): method get_act_space (line 88) | def get_act_space(self): method get_obs_space (line 91) | def get_obs_space(self): method get_act_space_str (line 94) | def get_act_space_str(self): method get_obs_space_str (line 97) | def get_obs_space_str(self): class SuperpoolEnv (line 102) | class SuperpoolEnv(object): method __init__ (line 103) | def __init__(self, process_pool, env_args_dict_list, spaces=None): method get_space (line 120) | def get_space(self): method step (line 123) | def step(self, actions): method reset (line 138) | def reset(self): method sleep (line 147) | def sleep(self): FILE: PythonExample/hmp_minimal_modules/UTIL/sync_exp.py class SynWorker (line 9) | class SynWorker: method __init__ (line 11) | def __init__(self, mod) -> None: method dump_sychronize_data (line 31) | def dump_sychronize_data(self): method sychronize_experiment (line 39) | def sychronize_experiment(self, key, data, reset_when_close=False): FILE: PythonExample/hmp_minimal_modules/UTIL/tensor_ops.py class torch (line 11) | class torch(): class ConfigCache (line 16) | class ConfigCache(object): method __init__ (line 17) | def __init__(self) -> None: method read_cfg (line 21) | def read_cfg(self): method device (line 29) | def device(self): method use_float64 (line 35) | def use_float64(self): function pt_inf (line 42) | def pt_inf(): function pt_nan (line 47) | def pt_nan(): function vis_mat (line 53) | def vis_mat(mat): function repeat_at (line 76) | def repeat_at(tensor, insert_dim, n_times, copy_mem=False): function np_repeat_at (line 86) | def np_repeat_at(array, insert_dim, n_times): function copy_clone (line 91) | def copy_clone(x): function my_view (line 143) | def my_view(x, shape): function add_onehot_id_at_last_dim (line 163) | def add_onehot_id_at_last_dim(x): function np_add_onehot_id_at_last_dim (line 170) | def np_add_onehot_id_at_last_dim(x): function add_onehot_id_at_last_dim_fixlen (line 179) | def add_onehot_id_at_last_dim_fixlen(x, fixlen, agent_ids): function np_one_hot (line 210) | def np_one_hot(x, n): function add_obs_container_subject (line 214) | def add_obs_container_subject(container_emb, subject_emb, div): function MayGoWrong (line 229) | def MayGoWrong(f): function dummy_decorator (line 241) | def dummy_decorator(f=None): function Args2tensor (line 259) | def Args2tensor(f): function Return2numpy (line 289) | def Return2numpy(f): function Args2tensor_Return2numpy (line 318) | def Args2tensor_Return2numpy(f): function _2cpu2numpy (line 364) | def _2cpu2numpy(x): function _2tensor (line 382) | def _2tensor(x): function pad_vec_array (line 407) | def pad_vec_array(arr_list, max_len): function one_hot_with_nan_np (line 417) | def one_hot_with_nan_np(tensr, num_classes): function one_hot_with_nan (line 424) | def one_hot_with_nan(tensr, num_classes): function scatter_with_nan (line 433) | def scatter_with_nan(tensr, num_classes, out_type="binary"): function process_space (line 443) | def process_space(space): class Policy_shift_observer (line 470) | class Policy_shift_observer(object): method __init__ (line 471) | def __init__(self, act_range, act_num): method new_sample (line 478) | def new_sample(self, act): function __hash__ (line 498) | def __hash__(x): function __hashm__ (line 521) | def __hashm__(*args): function __hashn__ (line 546) | def __hashn__(generator): function np_softmax (line 571) | def np_softmax(x, axis=None): function logsumexp (line 581) | def logsumexp(a, axis=None, keepdims=False, return_sign=False): function sample_balance (line 609) | def sample_balance(x, y, n_class, weight=None): function gather_righthand (line 659) | def gather_righthand(src, index, check=True): function np_gather_righthand (line 696) | def np_gather_righthand(src, index, check=True): function scatter_righthand (line 730) | def scatter_righthand(scatter_into, src, index, check=True): function distance_mat_between (line 753) | def distance_mat_between(A, B): function distance_matrix (line 767) | def distance_matrix(A): function delta_matrix (line 778) | def delta_matrix(A): function np_normalize_last_dim (line 785) | def np_normalize_last_dim(mat): function dir2rad_old (line 788) | def dir2rad_old(delta_pos): function dir2rad (line 799) | def dir2rad(delta_pos): function dir3d_rad (line 803) | def dir3d_rad(delta_pos): function reg_deg (line 812) | def reg_deg(deg): function reg_deg_at (line 816) | def reg_deg_at(rad, ref): function reg_rad (line 819) | def reg_rad(rad): function reg_rad_at (line 824) | def reg_rad_at(rad, ref): function avg_rad (line 828) | def avg_rad(rad1, rad2): function zeros_like_except_dim (line 831) | def zeros_like_except_dim(array, except_dim, n): function pad_at_dim (line 837) | def pad_at_dim(array, dim, n): function stack_vec_with_padding (line 842) | def stack_vec_with_padding(arr_list): function objdump (line 853) | def objdump(obj): function objload (line 859) | def objload(): function stack_padding (line 866) | def stack_padding(l, padding=np.nan): function n_item (line 873) | def n_item(tensor): function cat_last_dim (line 882) | def cat_last_dim(tensor, cat): function arrange_id (line 895) | def arrange_id(N_AGENT_EACH_TEAM): function get_binary (line 911) | def get_binary(n:int, n_bits:int, dtype=np.float32): function get_binary_n_rows (line 928) | def get_binary_n_rows(n_row, n_bit=8, dtype=np.float32): FILE: PythonExample/hmp_minimal_modules/UTIL/win_pool.py function print_red (line 14) | def print_red(*kw,**kargs): function print_green (line 17) | def print_green(*kw,**kargs): function child_process_load_config (line 23) | def child_process_load_config(machine_info): class SuperProc (line 32) | class SuperProc(multiprocessing.Process): method __init__ (line 33) | def __init__(self, pipe, pipeHelp, index, base_seed, machine_info): method automatic_generation (line 42) | def automatic_generation(self, name, gen_fn, *arg): method automatic_execution (line 45) | def automatic_execution(self, name, dowhat, *arg): method add_targets (line 48) | def add_targets(self, new_target_args): method execute_target (line 58) | def execute_target(self, recv_args): method run (line 71) | def run(self): method __del__ (line 96) | def __del__(self): class SmartPool (line 102) | class SmartPool(object): method __init__ (line 103) | def __init__(self, proc_num, fold, base_seed=None): method add_target (line 127) | def add_target(self, name, lam, args_list=None): method exec_target (line 141) | def exec_target(self, name, dowhat, args_list = None, index_list = None): method party_over (line 196) | def party_over(self): method __del__ (line 199) | def __del__(self): FILE: PythonExample/hmp_minimal_modules/VISUALIZE/mcom.py class mcom (line 9) | class mcom(): method __init__ (line 24) | def __init__(self, path=None, digit=-1, rapid_flush=True, draw_mode="I... method init_draw_subprocess (line 47) | def init_draw_subprocess(self): method init_2d_kernel (line 65) | def init_2d_kernel(self): method __del__ (line 90) | def __del__(self): method disconnect (line 109) | def disconnect(self): method recall (line 114) | def recall(self, starting_file): method send (line 130) | def send(self, data): method rec_init (line 149) | def rec_init(self, color='k'): method rec_show (line 153) | def rec_show(self): method rec_end (line 156) | def rec_end(self): method rec_save (line 159) | def rec_save(self): method rec_end_hold (line 162) | def rec_end_hold(self): method rec_clear (line 165) | def rec_clear(self, name): method rec (line 169) | def rec(self, value, name): method other_cmd (line 181) | def other_cmd(self, func_name, *args, **kargs): method _process_scalar (line 198) | def _process_scalar(self, arg, strlist,key=None): method _process_ndarray (line 228) | def _process_ndarray(self, args, strlist, key=None): class DrawProcessThreejs (line 258) | class DrawProcessThreejs(Process): method __init__ (line 259) | def __init__(self, draw_udp_port, draw_mode, **kargs): method flush_backup (line 276) | def flush_backup(self): method init_threejs (line 287) | def init_threejs(self): method run (line 297) | def run(self): method __del__ (line 314) | def __del__(self): method run_handler (line 317) | def run_handler(self, new_buff_list): method run_flask (line 326) | def run_flask(self, port): class DrawProcess (line 405) | class DrawProcess(Process): method __init__ (line 406) | def __init__(self, draw_udp_port, draw_mode, **kargs): method init_matplot_lib (line 416) | def init_matplot_lib(self): method run (line 454) | def run(self): method run_handler (line 475) | def run_handler(self, buff_list): method __del__ (line 484) | def __del__(self): method process_cmd (line 489) | def process_cmd(self, cmd_str): method get_cmd_lib (line 498) | def get_cmd_lib(self, cmd): method rec_init_fn (line 510) | def rec_init_fn(self): method v2d_init_fn (line 517) | def v2d_init_fn(self): class MyHttp (line 524) | class MyHttp(Process): method __init__ (line 525) | def __init__(self, path_to_html, avail_port): method run (line 530) | def run(self): FILE: PythonExample/hmp_minimal_modules/VISUALIZE/mcom_def.py function find_where_to_log (line 24) | def find_where_to_log(path): FILE: PythonExample/hmp_minimal_modules/VISUALIZE/mcom_rec.py class rec_family (line 10) | class rec_family(object): method __init__ (line 11) | def __init__(self, colorC=None, draw_mode='Native', image_path=None, f... method rec_disable_percentile_clamp (line 63) | def rec_disable_percentile_clamp(self): method rec_enable_percentile_clamp (line 66) | def rec_enable_percentile_clamp(self): method rec_init (line 69) | def rec_init(self, colorC=None): method match_exclude (line 74) | def match_exclude(self, name): method get_index (line 80) | def get_index(self, name): method rec (line 83) | def rec(self, var, name): method handle_all_missing_time (line 120) | def handle_all_missing_time(self): method handle_missing_time (line 127) | def handle_missing_time(self, line_arr, time_arr): method get_figure_size (line 132) | def get_figure_size(self, image_num): method rec_show (line 139) | def rec_show(self): method smooth (line 208) | def smooth(self, data, sm_lv=1): method plot_advanced (line 216) | def plot_advanced(self): method plot_classic (line 316) | def plot_classic(self, image_num, rows, time_explicit, time_var_met, t... method change_target_figure_lim (line 375) | def change_target_figure_lim(self, target_subplot, limx1, limx2, limy1... FILE: PythonExample/hmp_minimal_modules/VISUALIZE/mcom_replay.py class RecallProcessThreejs (line 9) | class RecallProcessThreejs(Process): method __init__ (line 10) | def __init__(self, file_path, port): method init_threejs (line 17) | def init_threejs(self): method __del__ (line 23) | def __del__(self): method run (line 26) | def run(self): method run_handler (line 65) | def run_handler(self, new_buff_list): method run_flask (line 71) | def run_flask(self, port): FILE: PythonExample/hmp_minimal_modules/VISUALIZE/mcom_rt.py class mcom (line 29) | class mcom(): method __init__ (line 30) | def __init__(self, path=None, digit=8, rapid_flush=True, draw_mode=Fal... method __del__ (line 74) | def __del__(self): method disconnect (line 94) | def disconnect(self): method recall (line 99) | def recall(self, starting_file): method send (line 115) | def send(self, data): method rec_init (line 144) | def rec_init(self, color='k'): method rec_show (line 148) | def rec_show(self): method rec_end (line 151) | def rec_end(self): method rec_save (line 154) | def rec_save(self): method rec_end_hold (line 157) | def rec_end_hold(self): method rec_clear (line 160) | def rec_clear(self, name): method rec (line 164) | def rec(self, value, name): method 发送虚幻4数据流 (line 174) | def 发送虚幻4数据流(self, x, y, z, pitch, yaw, roll): method 发送虚幻4数据流_多智能体 (line 184) | def 发送虚幻4数据流_多智能体(self, x_, y_, z_, pitch_, yaw_, roll_): method other_cmd (line 201) | def other_cmd(self, func_name, *args, **kargs): method _process_scalar (line 221) | def _process_scalar(self, arg, strlist,key=None): method _process_ndarray (line 249) | def _process_ndarray(self, args, strlist, key=None): function find_where_to_log (line 276) | def find_where_to_log(path): class DrawProcessThreejs (line 298) | class DrawProcessThreejs(Process): method __init__ (line 299) | def __init__(self, draw_udp_port, draw_mode, **kargs): method flush_backup (line 316) | def flush_backup(self): method init_threejs (line 327) | def init_threejs(self): method run_ws (line 343) | def run_ws(self, port): method run_flask (line 426) | def run_flask(self, port): method run (line 460) | def run(self): method __del__ (line 476) | def __del__(self): method run_handler (line 479) | def run_handler(self, new_buff_list): class DrawProcess (line 490) | class DrawProcess(Process): method __init__ (line 491) | def __init__(self, draw_udp_port, draw_mode, **kargs): method init_matplot_lib (line 500) | def init_matplot_lib(self): method run (line 536) | def run(self): method run_handler (line 556) | def run_handler(self, buff_list): method __del__ (line 565) | def __del__(self): method process_cmd (line 570) | def process_cmd(self, cmd_str): method get_cmd_lib (line 579) | def get_cmd_lib(self, cmd): method rec_init_fn (line 591) | def rec_init_fn(self): method v2d_init_fn (line 595) | def v2d_init_fn(self): class MyHttp (line 602) | class MyHttp(Process): method __init__ (line 603) | def __init__(self, path_to_html, avail_port): method run (line 608) | def run(self): FILE: PythonExample/hmp_minimal_modules/VISUALIZE/mcom_test.py function validate_path (line 1) | def validate_path(): FILE: PythonExample/hmp_minimal_modules/VISUALIZE/mcom_v2d.py class v2d_family (line 12) | class v2d_family(): method __init__ (line 13) | def __init__(self, draw_mode) -> None: method v2d_init (line 25) | def v2d_init(self): method v2dx (line 28) | def v2dx(self, name, xpos, ypos, dir=0, **kargs): method init_fig (line 68) | def init_fig(self): method add_to_style (line 74) | def add_to_style(self, char_index, char_color): method rec_data (line 81) | def rec_data(self, x,y,r,dir): method tank_data (line 89) | def tank_data(self, x,y,r,dir,**kargs): method circle_data (line 130) | def circle_data(self, x,y,r,dir,rad,step=15): method dotify_vec (line 140) | def dotify_vec(p_arr): method line (line 150) | def line(p1,p2, sep): method fan_data (line 161) | def fan_data(self, x,y,r,dir,rad): #to do: dotted line method get_terrain (line 182) | def get_terrain(arr, theta): method v2d_add_terrain (line 189) | def v2d_add_terrain(self, theta): method v2d_draw (line 193) | def v2d_draw(self): method v2d_line_object (line 254) | def v2d_line_object(self, indexA, indexB): method v2d_clear (line 266) | def v2d_clear(self): method v2d_show (line 275) | def v2d_show(self): FILE: PythonExample/hmp_minimal_modules/VISUALIZE/seaborn_defaults.py function setTimesNewRomanFont_MustExecuteAtLast (line 9) | def setTimesNewRomanFont_MustExecuteAtLast(): function init (line 14) | def init(font_scale): function roll_color_palette (line 25) | def roll_color_palette(cp, offset): function lift_color (line 30) | def lift_color(cp, n): function find_in_dict_list (line 33) | def find_in_dict_list(dict_list, **kwargs): function filter_in_dict_list (line 41) | def filter_in_dict_list(dict_list, **kwargs): function filter_out_dict_list (line 48) | def filter_out_dict_list(dict_list, **kwargs): function rename_key_in_dict_list (line 57) | def rename_key_in_dict_list(dict_list, from_what, to_what): function rename_query_in_dict_list (line 65) | def rename_query_in_dict_list(dict_list, from_what, to_what): function lift_key_in_dict_list (line 82) | def lift_key_in_dict_list(dict_list, key): function legend (line 94) | def legend(handle, 水平位置百分比, 垂直位置百分比, 边框, 字体大小): function save_and_push (line 105) | def save_and_push(handle, img_path, check_exist=True): FILE: PythonExample/hmp_minimal_modules/ZDOCS/test_examples.py function validate_path (line 1) | def validate_path(): function get_info (line 30) | def get_info(script_path): function run_batch_exp (line 44) | def run_batch_exp(n_run, n_run_mode, test_subjects, script_path, sum_not... FILE: PythonExample/hmp_minimal_modules/config.py class GlobalConfig (line 46) | class GlobalConfig(object): # ADD_TO_CONF_SYSTEM //DO NOT remove this co... FILE: PythonExample/hmp_minimal_modules/main.py function SET_NUM_THREADS (line 24) | def SET_NUM_THREADS(internal_threads): function pytorch_gpu_init (line 32) | def pytorch_gpu_init(cfg): function register_daemon (line 54) | def register_daemon(cfg): FILE: PythonExample/hmp_minimal_modules/multi_team.py class MMPlatform (line 5) | class MMPlatform(object): method __init__ (line 7) | def __init__(self, mcv, envs): method act (line 44) | def act(self, runner_info): method before_terminate (line 69) | def before_terminate(self, runner_info): method _update_runner (line 75) | def _update_runner(self, runner_info, ENV_PAUSE, t_name, key, content): method _split_intel (line 85) | def _split_intel(self, runner_info, t_members, t_name, t_index): method _append_act_to_list (line 132) | def _append_act_to_list(self, _act_, actions_list, t_members): method deal_with_hook (line 139) | def deal_with_hook(self, hook, t_intel_basic): method notify_teams (line 151) | def notify_teams(self, message, **kargs): method __split_obs (line 157) | def __split_obs(self, obs, t_index): method __split_obs_thread (line 167) | def __split_obs_thread(self, obs, t_index): FILE: PythonExample/hmp_minimal_modules/multi_team_parallel.py class alg_parallel_wrapper (line 6) | class alg_parallel_wrapper(object): method __init__ (line 7) | def __init__(self, t_name, n_agent, n_thread, space, mcv, team) -> None: method interact_with_env (line 15) | def interact_with_env(self, _input_): method call_hook_deligate (line 25) | def call_hook_deligate(self, callback_arg): method init_alg_logger (line 31) | def init_alg_logger(self): class MMPlatform (line 45) | class MMPlatform(object): method __init__ (line 47) | def __init__(self, mcv, envs): method act (line 96) | def act(self, runner_info): method before_terminate (line 129) | def before_terminate(self, runner_info): method _update_runner (line 135) | def _update_runner(self, runner_info, ENV_PAUSE, t_name, key, content): method _split_intel (line 145) | def _split_intel(self, runner_info, t_members, t_name, t_index): method _append_act_to_list (line 194) | def _append_act_to_list(self, _act_, actions_list, t_members): method deal_with_hook (line 201) | def deal_with_hook(self, hook, t_intel_basic, t_index): method notify_teams (line 224) | def notify_teams(self, message, **kargs): method __split_obs (line 229) | def __split_obs(self, obs, t_index): method __split_obs_thread (line 239) | def __split_obs_thread(self, obs, t_index): FILE: PythonExample/hmp_minimal_modules/task_runner.py class Runner (line 16) | class Runner(object): method __init__ (line 17) | def __init__(self, process_pool): method run (line 53) | def run(self): method init_runner (line 76) | def init_runner(self): method update_runner (line 94) | def update_runner(self, done, obs, reward, info): method start_a_test_run (line 148) | def start_a_test_run(self): method init_test_runner (line 170) | def init_test_runner(self): method update_test_runner (line 190) | def update_test_runner(self, done, obs, reward, info): method _init_interested_agent_logging (line 223) | def _init_interested_agent_logging(self): method _checkout_interested_agents (line 230) | def _checkout_interested_agents(self, info_runner, testing=False): method get_a_logger (line 292) | def get_a_logger(note): method heartbeat (line 306) | def heartbeat(self, style=0, beat=None): method get_fps (line 321) | def get_fps(self, dt): FILE: Source/Jsonx/Jsonx.Build.cs class Jsonx (line 5) | public class Jsonx : ModuleRules method Jsonx (line 7) | public Jsonx(ReadOnlyTargetRules Target) : base(Target) FILE: Source/Jsonx/Private/Dom/JsonxObject.cpp function FString (line 56) | FString FJsonxObject::GetStringField( const FString& FieldName ) const FILE: Source/Jsonx/Private/Dom/JsonxValue.cpp function FString (line 22) | FString FJsonxValue::AsString() const function TryConvertNumber (line 80) | bool TryConvertNumber(const FJsonxValue& InValue, T& OutNumber) FILE: Source/Jsonx/Private/JsonxModule.cpp class FJsonxModule (line 15) | class FJsonxModule method StartupModule (line 22) | virtual void StartupModule( ) override { } method ShutdownModule (line 23) | virtual void ShutdownModule( ) override { } method SupportsDynamicReloading (line 25) | virtual bool SupportsDynamicReloading( ) override FILE: Source/Jsonx/Public/Dom/JsonxObject.h function class (line 14) | class JSONX_API FJsonxObject function FORCEINLINE (line 119) | FORCEINLINE int32 GetIntegerField(const FString& FieldName) const FILE: Source/Jsonx/Public/Dom/JsonxValue.h function class (line 14) | class JSONX_API FJsonxValue function override (line 117) | const override { if (Value.IsNumeric()) { OutDouble = FCString::Atod(*V... function override (line 118) | const override { LexFromString(OutValue, *Value); return true; } function override (line 119) | const override { LexFromString(OutValue, *Value); return true; } function override (line 120) | const override { LexFromString(OutValue, *Value); return true; } function override (line 121) | const override { LexFromString(OutValue, *Value); return true; } function override (line 122) | const override { OutBool = Value.ToBool(); return true; } function override (line 139) | const override { OutNumber = Value; return true; } function override (line 140) | const override { OutBool = (Value != 0.0); return true; } function override (line 157) | const override { OutString = Value; return true; } function override (line 158) | const override { return LexTryParseString(OutDouble, *Value); } function override (line 159) | const override { return LexTryParseString(OutDouble, *Value); } function override (line 160) | const override { return LexTryParseString(OutValue, *Value); } function override (line 161) | const override { return LexTryParseString(OutValue, *Value); } function override (line 162) | const override { return LexTryParseString(OutValue, *Value); } function override (line 163) | const override { return LexTryParseString(OutValue, *Value); } function override (line 164) | const override { return LexTryParseString(OutValue, *Value); } function override (line 165) | const override { return LexTryParseString(OutValue, *Value); } function override (line 166) | const override { return LexTryParseString(OutValue, *Value); } function override (line 167) | const override { return LexTryParseString(OutValue, *Value); } function override (line 168) | const override { OutBool = Value.ToBool(); return true; } function override (line 182) | const override { OutNumber = Value ? 1 : 0; return true; } function override (line 183) | const override { OutBool = Value; return true; } function override (line 184) | const override { OutString = Value ? TEXT("true") : TEXT("false"); retur... function virtual (line 198) | virtual bool TryGetArray(const TArray< TSharedPtr >*& OutAr... function virtual (line 212) | virtual bool TryGetObject(const TSharedPtr*& OutObject) co... FILE: Source/Jsonx/Public/Policies/CondensedJsonxPrintPolicy.h function WriteLineTerminator (line 17) | static inline void WriteLineTerminator(FArchive* Stream) {} function WriteTabs (line 18) | static inline void WriteTabs(FArchive* Stream, int32 Count) {} function WriteSpace (line 19) | static inline void WriteSpace(FArchive* Stream) {} FILE: Source/Jsonx/Public/Policies/JsonxPrintPolicy.h function WriteChar (line 21) | static inline void WriteChar( FArchive* Stream, CharType Char ) function WriteString (line 32) | static inline void WriteString( FArchive* Stream, const FString& String ) function WriteString (line 48) | inline void TJsonxPrintPolicy::WriteString( FArchive* Stream, con... function WriteString (line 60) | inline void TJsonxPrintPolicy::WriteString(FArchive* Stream, ... FILE: Source/Jsonx/Public/Policies/PrettyJsonxPrintPolicy.h function WriteLineTerminator (line 17) | static inline void WriteLineTerminator( FArchive* Stream ) function WriteTabs (line 22) | static inline void WriteTabs( FArchive* Stream, int32 Count ) function WriteSpace (line 32) | static inline void WriteSpace( FArchive* Stream ) FILE: Source/Jsonx/Public/Serialization/JsonxReader.h function ReadNext (line 50) | bool ReadNext( EJsonxNotation& Notation ) function SkipObject (line 142) | bool SkipObject() function SkipArray (line 147) | bool SkipArray() function FString (line 154) | const FString& GetValueAsString() const function FORCEINLINE (line 166) | FORCEINLINE const FString& GetValueAsNumberString() const function ReadUntilMatching (line 236) | bool ReadUntilMatching( const EJsonxNotation ExpectedNotation ) function ReadStart (line 275) | bool ReadStart( EJsonxToken& Token ) function ReadNextObjectValue (line 298) | bool ReadNextObjectValue( EJsonxToken& Token ) function ReadNextArrayValue (line 361) | bool ReadNextArrayValue( EJsonxToken& Token ) function NextToken (line 398) | bool NextToken( EJsonxToken& OutToken ) function ParseStringToken (line 554) | bool ParseStringToken() function ParseNumberToken (line 648) | bool ParseNumberToken( CharType FirstChar ) function ParseWhiteSpace (line 775) | bool ParseWhiteSpace() function IsLineBreak (line 803) | bool IsLineBreak( const CharType& Char ) function IsWhitespace (line 809) | bool IsWhitespace( const CharType& Char ) function IsJsonxNumber (line 815) | bool IsJsonxNumber( const CharType& Char ) function IsDigit (line 822) | bool IsDigit( const CharType& Char ) function IsNonZeroDigit (line 827) | bool IsNonZeroDigit( const CharType& Char ) function IsAlphaNumber (line 833) | bool IsAlphaNumber( const CharType& Char ) function class (line 867) | class FJsonxStringReader function FORCEINLINE (line 916) | FORCEINLINE void InitReader() function TSharedRef (line 945) | static TSharedRef> Create(FString&& JsonxString) function TSharedRef (line 950) | static TSharedRef> Create(FArchive* const Stream) FILE: Source/Jsonx/Public/Serialization/JsonxSerializer.h function class (line 14) | class FJsonxSerializer type StackState (line 148) | struct StackState type FElement (line 156) | struct FElement FILE: Source/Jsonx/Public/Serialization/JsonxSerializerMacros.h type FJsonxSerializerBase (line 244) | struct FJsonxSerializerBase type TArray (line 247) | typedef TArray FJsonxSerializableArray; type TArray (line 248) | typedef TArray FJsonxSerializableArrayInt; type TMap (line 251) | typedef TMap FJsonxSerializableKeyValueMap; type TMap (line 252) | typedef TMap FJsonxSerializableKeyValueMapInt; type TMap (line 253) | typedef TMap FJsonxSerializableKeyValueMapInt64; type TMap (line 254) | typedef TMap FJsonxSerializableKeyValueMapFloat; type FJsonxSerializerBase (line 259) | struct FJsonxSerializerBase function virtual (line 314) | virtual ~FJsonxSerializerWriter() function virtual (line 323) | virtual TSharedPtr GetObject() override { return TSharedPt... function virtual (line 328) | virtual void StartObject() override function virtual (line 336) | virtual void StartObject(const FString& Name) override function virtual (line 343) | virtual void EndObject() override function virtual (line 348) | virtual void StartArray() override function virtual (line 353) | virtual void StartArray(const FString& Name) override function virtual (line 358) | virtual void EndArray() override function virtual (line 368) | virtual void Serialize(const TCHAR* Name, int32& Value) override function virtual (line 378) | virtual void Serialize(const TCHAR* Name, uint32& Value) override function virtual (line 388) | virtual void Serialize(const TCHAR* Name, int64& Value) override function virtual (line 398) | virtual void Serialize(const TCHAR* Name, bool& Value) override function virtual (line 408) | virtual void Serialize(const TCHAR* Name, FString& Value) override function virtual (line 418) | virtual void Serialize(const TCHAR* Name, FText& Value) override function virtual (line 428) | virtual void Serialize(const TCHAR* Name, float& Value) override function virtual (line 438) | virtual void Serialize(const TCHAR* Name, double& Value) override function virtual (line 448) | virtual void Serialize(const TCHAR* Name, FDateTime& Value) override function virtual (line 477) | virtual void SerializeArray(const TCHAR* Name, FJsonxSerializableArray& ... function virtual (line 850) | virtual void SerializeMap(const TCHAR* Name, FJsonxSerializableKeyValueM... function virtual (line 870) | virtual void SerializeMap(const TCHAR* Name, FJsonxSerializableKeyValueM... function virtual (line 1015) | virtual bool FromJsonx(const FString& Jsonx) function FJsonxSerializable (line 1062) | struct FJsonxDataBag function GetDouble (line 1139) | double GetDouble(const FString& Key) const function FString (line 1145) | FString GetString(const FString& Key) const function GetBool (line 1151) | bool GetBool(const FString& Key) const function SetFieldJsonx (line 1172) | void SetFieldJsonx(const FString& Key, const TSharedPtr& Va... FILE: Source/Jsonx/Public/Serialization/JsonxTypes.h type class (line 21) | enum class type class (line 33) | enum class function FORCEINLINE (line 53) | FORCEINLINE bool EJsonxToken_IsShortValue(EJsonxToken Token) type class (line 58) | enum class FILE: Source/Jsonx/Public/Serialization/JsonxWriter.h function FString (line 60) | inline FString EscapeJsonxString(const FString& StringVal) function WriteObjectStart (line 93) | void WriteObjectStart() function WriteObjectStart (line 113) | void WriteObjectStart( const FString& Identifier ) function WriteObjectEnd (line 126) | void WriteObjectEnd() function WriteArrayStart (line 139) | void WriteArrayStart() function WriteArrayStart (line 159) | void WriteArrayStart( const FString& Identifier ) function WriteArrayEnd (line 171) | void WriteArrayEnd() function WriteValue (line 210) | void WriteValue(const FString& Value) function WriteValue (line 241) | void WriteValue(const FString& Identifier, const TCHAR* Value) function WriteRawJSONXValue (line 248) | void WriteRawJSONXValue( const FString& Identifier, const FString& Value ) function WriteNull (line 258) | void WriteNull( const FString& Identifier ) function WriteValue (line 263) | void WriteValue( const TCHAR* Value ) function WriteRawJSONXValue (line 270) | void WriteRawJSONXValue( const FString& Value ) function WriteNull (line 289) | void WriteNull() function virtual (line 294) | virtual bool Close() function WriteIdentifierPrefix (line 305) | void WriteIdentifierPrefix(const FString& Identifier) function FORCEINLINE (line 348) | FORCEINLINE void WriteIdentifier( const FString& Identifier ) function FORCEINLINE (line 358) | FORCEINLINE EJsonxToken WriteValueOnly(bool Value) function FORCEINLINE (line 366) | FORCEINLINE EJsonxToken WriteValueOnly(float Value) function FORCEINLINE (line 380) | FORCEINLINE EJsonxToken WriteValueOnly(double Value) function FORCEINLINE (line 397) | FORCEINLINE EJsonxToken WriteValueOnly(float Value) function FORCEINLINE (line 404) | FORCEINLINE EJsonxToken WriteValueOnly(double Value) function FORCEINLINE (line 417) | FORCEINLINE EJsonxToken WriteValueOnly(int32 Value) function FORCEINLINE (line 422) | FORCEINLINE EJsonxToken WriteValueOnly(int64 Value) function WriteValueOnly (line 428) | WriteValueOnly(TYPE_OF_NULLPTR) function virtual (line 440) | virtual void WriteStringValue( const FString& String ) function virtual (line 472) | virtual bool Close() override FILE: Source/JsonxUtilities/JsonxUtilities.Build.cs class JsonxUtilities (line 5) | public class JsonxUtilities : ModuleRules method JsonxUtilities (line 7) | public JsonxUtilities( ReadOnlyTargetRules Target ) : base(Target) FILE: Source/JsonxUtilities/Private/JsonxObjectConverter.cpp function FString (line 15) | FString FJsonxObjectConverter::StandardizeCase(const FString &StringIn) function ConvertScalarFPropertyToJsonxValue (line 30) | TSharedPtr ConvertScalarFPropertyToJsonxValue(FProperty* Pr... function PRAGMA_DISABLE_DEPRECATION_WARNINGS (line 207) | PRAGMA_DISABLE_DEPRECATION_WARNINGS function PRAGMA_ENABLE_DEPRECATION_WARNINGS (line 233) | PRAGMA_ENABLE_DEPRECATION_WARNINGS function UStructToJsonxObjectStringInternal (line 309) | bool UStructToJsonxObjectStringInternal(const TSharedRef& ... function ConvertScalarJsonxValueToFPropertyWithContainer (line 395) | bool ConvertScalarJsonxValueToFPropertyWithContainer(const TSharedPtr& J... function JsonxAttributesToUStructWithContainer (line 803) | bool JsonxAttributesToUStructWithContainer(const TMap< FString, TSharedP... function FFormatNamedArguments (line 941) | FFormatNamedArguments FJsonxObjectConverter::ParseTextArgumentsFromJsonx... FILE: Source/JsonxUtilities/Public/JsonxDomBuilder.h function class (line 31) | class FJsonxDomBuilder function CopyIf (line 85) | void CopyIf(const FJsonxObject& Src, TFunctionRef