SYMBOL INDEX (217 symbols across 9 files) FILE: algorithm/IDQN.py class Estimator (line 8) | class Estimator: method __init__ (line 11) | def __init__(self, method _build_model (line 65) | def _build_model(self): method predict (line 100) | def predict(self, s): method action (line 105) | def action(self, s, context, epsilon): method update (line 158) | def update(self, s, a, y, learning_rate, global_step): class stateProcessor (line 180) | class stateProcessor: method __init__ (line 185) | def __init__(self, method utility_conver_states (line 196) | def utility_conver_states(self, curr_state): method utility_conver_reward (line 201) | def utility_conver_reward(self, reward_node): method reward_wrapper (line 205) | def reward_wrapper(self, info, curr_s): method compute_context (line 219) | def compute_context(self, info): method utility_normalize_states (line 225) | def utility_normalize_states(self, curr_s): method to_grid_states (line 235) | def to_grid_states(self, curr_s, curr_city_time): method to_grid_rewards (line 249) | def to_grid_rewards(self, action_idx_valid, node_reward): method to_grid_next_states (line 257) | def to_grid_next_states(self, s_grid, next_state, action_index, curr_c... method to_grid_state_for_training (line 278) | def to_grid_state_for_training(self, s_grid, action_starting_gridids): method to_action_mat (line 285) | def to_action_mat(self, action_neighbor_idx): class ReplayMemory (line 292) | class ReplayMemory: method __init__ (line 296) | def __init__(self, memory_size, batch_size): method add (line 307) | def add(self, s, a, r, next_s): method sample (line 330) | def sample(self): method reset (line 341) | def reset(self): class ModelParametersCopier (line 349) | class ModelParametersCopier(): method __init__ (line 354) | def __init__(self, estimator1, estimator2): method make (line 371) | def make(self, sess): FILE: algorithm/alg_utility.py function tfsum (line 8) | def tfsum(x, axis=None, keepdims=False): class Pd (line 12) | class Pd(object): method mode (line 17) | def mode(self): method neglogp (line 20) | def neglogp(self, x): method kl (line 24) | def kl(self, other): method entropy (line 27) | def entropy(self): method sample (line 30) | def sample(self): method logp (line 33) | def logp(self, x): class DiagGaussianPd (line 37) | class DiagGaussianPd(Pd): method __init__ (line 38) | def __init__(self, mu, logstd): method mode (line 43) | def mode(self): method neglogp (line 46) | def neglogp(self, x): method sample (line 52) | def sample(self): function normalize_reward (line 57) | def normalize_reward(discounted_epr): function continuous_quadratic_knapsack (line 76) | def continuous_quadratic_knapsack(b, u, r): function projection_fast (line 131) | def projection_fast(u, n, num_idle_driver): function categorical_sample_split (line 138) | def categorical_sample_split(logits, d=6): function fc (line 150) | def fc(x, scope, nh, act=tf.nn.relu, init_scale=1.0): function ortho_init (line 161) | def ortho_init(scale=1.0): function get_target_ids_local (line 184) | def get_target_ids_local(mapped_matrix_int_local): function collision_action (line 194) | def collision_action(action_tuple): function construct_grid_nodeid_mapping (line 207) | def construct_grid_nodeid_mapping(target_ids_local, grid_ids_local): function utility_conver_states (line 215) | def utility_conver_states(curr_s, target_id_states): function utility_conver_reward (line 219) | def utility_conver_reward(reward_node, target_id_states): function compute_sum_qtable (line 226) | def compute_sum_qtable(temp_qtable): FILE: algorithm/cA2C.py class Estimator (line 9) | class Estimator: method __init__ (line 12) | def __init__(self, method _build_value_model (line 90) | def _build_value_model(self): method _build_mlp_policy (line 115) | def _build_mlp_policy(self): method predict (line 142) | def predict(self, s): method action (line 147) | def action(self, s, context, epsilon): method compute_advantage (line 222) | def compute_advantage(self, curr_state_value, next_state_ids, next_sta... method compute_targets (line 234) | def compute_targets(self, valid_prob, next_state, node_reward, gamma): method initialization (line 248) | def initialization(self, s, y, learning_rate): method update_policy (line 254) | def update_policy(self, policy_state, advantage, action_choosen_mat, c... method update_value (line 268) | def update_value(self, s, y, learning_rate, global_step): class stateProcessor (line 292) | class stateProcessor: method __init__ (line 297) | def __init__(self, method utility_conver_states (line 308) | def utility_conver_states(self, curr_state): method utility_normalize_states (line 313) | def utility_normalize_states(self, curr_s): method utility_conver_reward (line 325) | def utility_conver_reward(self, reward_node): method reward_wrapper (line 329) | def reward_wrapper(self, info, curr_s): method compute_context (line 343) | def compute_context(self, info): method to_grid_states (line 349) | def to_grid_states(self, curr_s, curr_city_time): method to_grid_rewards (line 370) | def to_grid_rewards(self, node_reward): method to_action_mat (line 377) | def to_action_mat(self, action_neighbor_idx): class policyReplayMemory (line 383) | class policyReplayMemory: method __init__ (line 384) | def __init__(self, memory_size, batch_size): method add (line 396) | def add(self, s, a, r, mask): method sample (line 420) | def sample(self): method reset (line 432) | def reset(self): class ReplayMemory (line 440) | class ReplayMemory: method __init__ (line 444) | def __init__(self, memory_size, batch_size): method add (line 455) | def add(self, s, a, r, next_s): method sample (line 479) | def sample(self): method reset (line 491) | def reset(self): class ModelParametersCopier (line 500) | class ModelParametersCopier(): method __init__ (line 505) | def __init__(self, estimator1, estimator2): method make (line 522) | def make(self, sess): FILE: algorithm/cDQN.py class Estimator (line 9) | class Estimator: method __init__ (line 12) | def __init__(self, method _build_model (line 74) | def _build_model(self): method predict (line 98) | def predict(self, s): method action (line 103) | def action(self, s, context, epsilon): method compute_targets (line 153) | def compute_targets(self, valid_prob, next_state, node_reward, gamma): method initialization (line 167) | def initialization(self, s, y, learning_rate): method update (line 173) | def update(self, s, y, learning_rate, global_step): method _build_cnn_model (line 194) | def _build_cnn_model(self): class stateProcessor (line 220) | class stateProcessor: method __init__ (line 225) | def __init__(self, method utility_conver_states (line 236) | def utility_conver_states(self, curr_state): method utility_normalize_states (line 241) | def utility_normalize_states(self, curr_s): method utility_conver_reward (line 250) | def utility_conver_reward(self, reward_node): method reward_wrapper (line 254) | def reward_wrapper(self, info, curr_s): method compute_context (line 262) | def compute_context(self, info): method to_grid_states (line 268) | def to_grid_states(self, curr_s, curr_city_time): method to_grid_rewards (line 284) | def to_grid_rewards(self, node_reward): method to_action_mat (line 287) | def to_action_mat(self, action_neighbor_idx): class ReplayMemory (line 293) | class ReplayMemory: method __init__ (line 297) | def __init__(self, memory_size, batch_size): method add (line 308) | def add(self, s, a, r, next_s): method sample (line 331) | def sample(self): method reset (line 342) | def reset(self): class ModelParametersCopier (line 351) | class ModelParametersCopier(): method __init__ (line 356) | def __init__(self, estimator1, estimator2): method make (line 373) | def make(self, sess): FILE: run/run_baseline_nopolicy.py function compute_context (line 80) | def compute_context(target_grids, info): FILE: simulator/envs.py class CityReal (line 24) | class CityReal: method __init__ (line 27) | def __init__(self, mapped_matrix_int, order_num_dist, idle_driver_dist... method construct_map_simulation (line 123) | def construct_map_simulation(self, M, N, n): method construct_mapping (line 134) | def construct_mapping(self): method construct_node_real (line 142) | def construct_node_real(self, mapped_matrix_int): method construct_map_real (line 160) | def construct_map_real(self, n_side): method initial_order_random (line 168) | def initial_order_random(self, distribution_all, dis_paras_all): method get_observation (line 177) | def get_observation(self): method get_num_idle_drivers (line 187) | def get_num_idle_drivers(self): method get_observation_driver_state (line 197) | def get_observation_driver_state(self): method reset_randomseed (line 208) | def reset_randomseed(self, random_seed): method reset (line 211) | def reset(self): method reset_clean (line 242) | def reset_clean(self, generate_order=1, ratio=1, city_time=""): method utility_collect_offline_drivers_id (line 276) | def utility_collect_offline_drivers_id(self): method utility_get_n_idle_drivers_nodewise (line 288) | def utility_get_n_idle_drivers_nodewise(self): method utility_add_driver_real_new (line 297) | def utility_add_driver_real_new(self, num_added_driver): method utility_add_driver_real_new_offlinefirst (line 320) | def utility_add_driver_real_new_offlinefirst(self, num_added_driver): method utility_add_driver_real_nodewise (line 353) | def utility_add_driver_real_nodewise(self, node_id, num_added_driver): method utility_set_drivers_offline_real_nodewise (line 371) | def utility_set_drivers_offline_real_nodewise(self, node_id, n_drivers... method utility_set_drivers_offline_real_new (line 383) | def utility_set_drivers_offline_real_new(self, n_drivers_to_off): method utility_bootstrap_oneday_order (line 417) | def utility_bootstrap_oneday_order(self): method step_driver_status_control (line 445) | def step_driver_status_control(self): method step_driver_online_offline_nodewise (line 456) | def step_driver_online_offline_nodewise(self): method step_driver_online_offline_control_new (line 478) | def step_driver_online_offline_control_new(self, n_idle_drivers): method step_driver_online_offline_control (line 497) | def step_driver_online_offline_control(self, n_idle_drivers): method utility_get_n_idle_drivers_real (line 524) | def utility_get_n_idle_drivers_real(self): method utility_set_neighbor_weight (line 533) | def utility_set_neighbor_weight(self, weights): method step_generate_order_real (line 536) | def step_generate_order_real(self): method step_bootstrap_order_real (line 546) | def step_bootstrap_order_real(self, day_orders_t): method step_assign_order (line 558) | def step_assign_order(self): method step_assign_order_broadcast_neighbor_reward_update (line 576) | def step_assign_order_broadcast_neighbor_reward_update(self): method step_remove_unfinished_orders (line 614) | def step_remove_unfinished_orders(self): method step_pre_order_assigin (line 619) | def step_pre_order_assigin(self, next_state): method step_dispatch_invalid (line 652) | def step_dispatch_invalid(self, dispatch_actions): method step_add_dispatched_drivers (line 697) | def step_add_dispatched_drivers(self, save_remove_id): method step_increase_city_time (line 705) | def step_increase_city_time(self): method step (line 711) | def step(self, dispatch_actions, generate_order=1): FILE: simulator/objects.py class Distribution (line 5) | class Distribution(): method sample (line 9) | def sample(self): class PoissonDistribution (line 12) | class PoissonDistribution(Distribution): method __init__ (line 14) | def __init__(self, lam): method sample (line 17) | def sample(self, seed=0): class GaussianDistribution (line 22) | class GaussianDistribution(Distribution): method __init__ (line 24) | def __init__(self, args): method sample (line 29) | def sample(self, seed=0): class Node (line 34) | class Node(object): method __init__ (line 40) | def __init__(self, index): method clean_node (line 58) | def clean_node(self): method get_layers_neighbors (line 65) | def get_layers_neighbors(self, l_max, M, N, env): method get_node_index (line 78) | def get_node_index(self): method get_driver_numbers (line 81) | def get_driver_numbers(self): method get_idle_driver_numbers_loop (line 84) | def get_idle_driver_numbers_loop(self): method get_off_driver_numbers_loop (line 91) | def get_off_driver_numbers_loop(self): method order_distribution (line 98) | def order_distribution(self, distribution, dis_paras): method generate_order_random (line 107) | def generate_order_random(self, city_time, nodes, seed): method generate_order_real (line 127) | def generate_order_real(self, l_max, order_time_dist, order_price_dist... method add_order_real (line 156) | def add_order_real(self, city_time, destination_node, duration, price): method set_neighbors (line 165) | def set_neighbors(self, nodes_list): method remove_idle_driver_random (line 169) | def remove_idle_driver_random(self): method set_idle_driver_offline_random (line 181) | def set_idle_driver_offline_random(self): method set_offline_driver_online (line 193) | def set_offline_driver_online(self): method get_driver_random (line 205) | def get_driver_random(self): method remove_driver (line 214) | def remove_driver(self, driver_id): method add_driver (line 223) | def add_driver(self, driver_id, driver): method remove_unfinished_order (line 227) | def remove_unfinished_order(self, city_time): method simple_order_assign (line 243) | def simple_order_assign(self, city_time, city): method simple_order_assign_real (line 270) | def simple_order_assign_real(self, city_time, city): method simple_order_assign_broadcast_update (line 302) | def simple_order_assign_broadcast_update(self, city, neighbor_node_rew... method utility_assign_orders_neighbor (line 320) | def utility_assign_orders_neighbor(self, city, neighbor_node, num_assi... class Driver (line 349) | class Driver(object): method __init__ (line 352) | def __init__(self, driver_id): method set_position (line 362) | def set_position(self, node): method set_order_start (line 365) | def set_order_start(self, order): method set_order_finish (line 368) | def set_order_finish(self): method get_driver_id (line 372) | def get_driver_id(self): method update_city_time (line 375) | def update_city_time(self): method set_city_time (line 378) | def set_city_time(self, city_time): method set_offline (line 381) | def set_offline(self): method set_offline_for_start_dispatch (line 387) | def set_offline_for_start_dispatch(self): method set_online (line 392) | def set_online(self): method set_online_for_finish_dispatch (line 398) | def set_online_for_finish_dispatch(self): method take_order (line 403) | def take_order(self, order): method status_control_eachtime (line 411) | def status_control_eachtime(self, city): class Order (line 428) | class Order(object): method __init__ (line 432) | def __init__(self, begin_position, end_position, begin_time, duration,... method get_begin_position (line 442) | def get_begin_position(self): method get_begin_position_id (line 445) | def get_begin_position_id(self): method get_end_position (line 448) | def get_end_position(self): method get_begin_time (line 451) | def get_begin_time(self): method set_assigned_time (line 454) | def set_assigned_time(self, city_time): method get_assigned_time (line 457) | def get_assigned_time(self): method get_duration (line 463) | def get_duration(self): method get_price (line 466) | def get_price(self): method get_wait_time (line 469) | def get_wait_time(self): FILE: simulator/utilities.py function datetime_range (line 9) | def datetime_range(start, end, delta): function mkdir_p (line 16) | def mkdir_p(path): function ids_2dto1d (line 26) | def ids_2dto1d(i, j, M, N): function ids_1dto2d (line 38) | def ids_1dto2d(ids, M, N): function get_neighbor_list (line 47) | def get_neighbor_list(i, j, M, N, n, nodes): function get_neighbor_index (line 100) | def get_neighbor_index(i, j): function get_layers_neighbors (line 128) | def get_layers_neighbors(i, j, l_max, M, N): function get_driver_status (line 178) | def get_driver_status(env): function debug_print_drivers (line 189) | def debug_print_drivers(node): FILE: tests/run_example.py function running_example (line 10) | def running_example():