SYMBOL INDEX (204 symbols across 27 files) FILE: src/deep_dialog/agents/agent.py class Agent (line 9) | class Agent: method __init__ (line 12) | def __init__(self, movie_dict=None, act_set=None, slot_set=None, param... method initialize_episode (line 31) | def initialize_episode(self): method state_to_action (line 39) | def state_to_action(self, state, available_actions): method register_experience_replay_tuple (line 59) | def register_experience_replay_tuple(self, s_t, a_t, reward, s_tplus1,... method set_nlg_model (line 75) | def set_nlg_model(self, nlg_model): method set_nlu_model (line 78) | def set_nlu_model(self, nlu_model): method add_nl_to_action (line 82) | def add_nl_to_action(self, agent_action): FILE: src/deep_dialog/agents/agent_baselines.py class InformAgent (line 12) | class InformAgent(Agent): method initialize_episode (line 15) | def initialize_episode(self): method state_to_action (line 23) | def state_to_action(self, state): class RequestAllAgent (line 42) | class RequestAllAgent(Agent): method initialize_episode (line 45) | def initialize_episode(self): method state_to_action (line 53) | def state_to_action(self, state): class RandomAgent (line 72) | class RandomAgent(Agent): method initialize_episode (line 75) | def initialize_episode(self): method state_to_action (line 83) | def state_to_action(self, state): class EchoAgent (line 93) | class EchoAgent(Agent): method initialize_episode (line 96) | def initialize_episode(self): method state_to_action (line 104) | def state_to_action(self, state): class RequestBasicsAgent (line 128) | class RequestBasicsAgent(Agent): method initialize_episode (line 131) | def initialize_episode(self): method state_to_action (line 141) | def state_to_action(self, state): FILE: src/deep_dialog/agents/agent_cmd.py class AgentCmd (line 10) | class AgentCmd(Agent): method __init__ (line 12) | def __init__(self, movie_dict=None, act_set=None, slot_set=None, param... method state_to_action (line 26) | def state_to_action(self, state): method parse_str_to_diaact (line 41) | def parse_str_to_diaact(self, string): method generate_diaact_from_nl (line 112) | def generate_diaact_from_nl(self, string): method add_nl_to_action (line 126) | def add_nl_to_action(self, agent_action): FILE: src/deep_dialog/agents/agent_dqn.py class AgentDQN (line 30) | class AgentDQN(Agent): method __init__ (line 31) | def __init__(self, movie_dict=None, act_set=None, slot_set=None, param... method initialize_episode (line 75) | def initialize_episode(self): method state_to_action (line 82) | def state_to_action(self, state): method prepare_state_representation (line 94) | def prepare_state_representation(self, state): method run_policy (line 189) | def run_policy(self, representation): method rule_policy (line 202) | def rule_policy(self): method DQN_policy (line 224) | def DQN_policy(self, state_representation): method action_index (line 231) | def action_index(self, act_slot_response): method register_experience_replay_tuple (line 241) | def register_experience_replay_tuple(self, s_t, a_t, reward, s_tplus1,... method sample_from_buffer (line 260) | def sample_from_buffer(self, batch_size): method train (line 274) | def train(self, batch_size=1, num_batches=100): method save_experience_replay_to_file (line 354) | def save_experience_replay_to_file(self, path): method load_experience_replay_from_file (line 364) | def load_experience_replay_from_file(self, path): method load_trained_DQN (line 369) | def load_trained_DQN(self, path): method set_user_planning (line 377) | def set_user_planning(self, user_planning): method save (line 380) | def save(self, filename): method load (line 383) | def load(self, filename): method reset_dqn_target (line 386) | def reset_dqn_target(self): FILE: src/deep_dialog/dialog_system/dialog_manager.py class DialogManager (line 13) | class DialogManager: method __init__ (line 16) | def __init__(self, agent, user, world_model, act_set, slot_set, movie_... method initialize_episode (line 31) | def initialize_episode(self, use_environment=False): method next_turn (line 62) | def next_turn(self, record_training_data=True, record_training_data_fo... method reward_function (line 121) | def reward_function(self, dialog_status): method reward_function_without_penalty (line 131) | def reward_function_without_penalty(self, dialog_status): method print_function (line 141) | def print_function(self, agent_action=None, user_action=None): FILE: src/deep_dialog/dialog_system/dict_reader.py function text_to_dict (line 8) | def text_to_dict(path): FILE: src/deep_dialog/dialog_system/kb_helper.py class KBHelper (line 11) | class KBHelper: method __init__ (line 14) | def __init__(self, movie_dictionary): method fill_inform_slots (line 22) | def fill_inform_slots(self, inform_slots_to_be_filled, current_slots): method available_slot_values (line 69) | def available_slot_values(self, slot, kb_results): method available_results_from_kb (line 81) | def available_results_from_kb(self, current_slots): method available_results_from_kb_for_slots (line 136) | def available_results_from_kb_for_slots(self, inform_slots): method database_results_for_agent (line 168) | def database_results_for_agent(self, current_slots): method suggest_slot_values (line 175) | def suggest_slot_values(self, request_slots, current_slots): FILE: src/deep_dialog/dialog_system/state_tracker.py class StateTracker (line 14) | class StateTracker: method __init__ (line 17) | def __init__(self, act_set, slot_set, movie_dictionary): method initialize_episode (line 44) | def initialize_episode(self): method dialog_history_vectors (line 59) | def dialog_history_vectors(self): method dialog_history_dictionaries (line 64) | def dialog_history_dictionaries(self): method kb_results_for_state (line 69) | def kb_results_for_state(self): method get_state_for_agent (line 80) | def get_state_for_agent(self): method get_state_for_user (line 88) | def get_state_for_user(self): method get_suggest_slots_values (line 96) | def get_suggest_slots_values(self, request_slots): method get_current_kb_results (line 105) | def get_current_kb_results(self): method update (line 111) | def update(self, agent_action=None, user_action=None): FILE: src/deep_dialog/dialog_system/utils.py function unique_states (line 12) | def unique_states(training_data): function contains (line 21) | def contains(unique, candidate_state): FILE: src/deep_dialog/nlg/decoder.py class decoder (line 10) | class decoder: method __init__ (line 11) | def __init__(self, input_size, hidden_size, output_size): method get_struct (line 14) | def get_struct(self): method fwdPass (line 19) | def fwdPass(self, Xs, params, **kwargs): method bwdPass (line 22) | def bwdPass(self, dY, cache): method batchForward (line 27) | def batchForward(self, ds, batch, params, predict_mode = False): method batchBackward (line 42) | def batchBackward(self, dY, cache): method costFunc (line 54) | def costFunc(self, ds, batch, params): method singleBatch (line 104) | def singleBatch(self, ds, batch, params): method eval (line 152) | def eval(self, ds, split, params): method predict (line 203) | def predict(self, ds, split, params): method post_process (line 219) | def post_process(self, pred_template, slot_val_dict, slot_dict): FILE: src/deep_dialog/nlg/lstm_decoder_tanh.py class lstm_decoder_tanh (line 13) | class lstm_decoder_tanh(decoder): method __init__ (line 14) | def __init__(self, diaact_input_size, input_size, hidden_size, output_... method fwdPass (line 32) | def fwdPass(self, Xs, params, **kwargs): method forward (line 105) | def forward(self, dict, Xs, params, **kwargs): method beam_forward (line 199) | def beam_forward(self, dict, Xs, params, **kwargs): method bwdPass (line 313) | def bwdPass(self, dY, cache): method prepare_input_rep (line 383) | def prepare_input_rep(self, ds, batch, params): FILE: src/deep_dialog/nlg/nlg.py class nlg (line 18) | class nlg: method __init__ (line 19) | def __init__(self): method post_process (line 22) | def post_process(self, pred_template, slot_val_dict, slot_dict): method convert_diaact_to_nl (line 50) | def convert_diaact_to_nl(self, dia_act, turn_msg): method translate_diaact (line 76) | def translate_diaact(self, dia_act): method load_nlg_model (line 135) | def load_nlg_model(self, model_path): method diaact_to_nl_slot_filling (line 160) | def diaact_to_nl_slot_filling(self, dia_act, template_sentence): method load_predefine_act_nl_pairs (line 183) | def load_predefine_act_nl_pairs(self, path): function main (line 194) | def main(params): FILE: src/deep_dialog/nlg/utils.py function initWeights (line 11) | def initWeights(n,d): function mergeDicts (line 17) | def mergeDicts(d0, d1): FILE: src/deep_dialog/nlu/bi_lstm.py class biLSTM (line 13) | class biLSTM(SeqToSeq): method __init__ (line 14) | def __init__(self, input_size, hidden_size, output_size): method fwdPass (line 34) | def fwdPass(self, Xs, params, **kwargs): method bwdPass (line 130) | def bwdPass(self, dY, cache): FILE: src/deep_dialog/nlu/lstm.py class lstm (line 13) | class lstm(SeqToSeq): method __init__ (line 14) | def __init__(self, input_size, hidden_size, output_size): method fwdPass (line 28) | def fwdPass(self, Xs, params, **kwargs): method bwdPass (line 83) | def bwdPass(self, dY, cache): FILE: src/deep_dialog/nlu/nlu.py class nlu (line 15) | class nlu: method __init__ (line 16) | def __init__(self): method generate_dia_act (line 19) | def generate_dia_act(self, annot): method load_nlu_model (line 47) | def load_nlu_model(self, model_path): method parse_str_to_vector (line 74) | def parse_str_to_vector(self, string): method parse_nlu_to_diaact (line 92) | def parse_nlu_to_diaact(self, nlu_vector, string): method refine_diaact_by_rules (line 160) | def refine_diaact_by_rules(self, diaact): method diaact_penny_string (line 177) | def diaact_penny_string(self, dia_act): FILE: src/deep_dialog/nlu/seq_seq.py class SeqToSeq (line 11) | class SeqToSeq: method __init__ (line 12) | def __init__(self, input_size, hidden_size, output_size): method get_struct (line 15) | def get_struct(self): method fwdPass (line 20) | def fwdPass(self, Xs, params, **kwargs): method bwdPass (line 23) | def bwdPass(self, dY, cache): method batchForward (line 28) | def batchForward(self, ds, batch, params, predict_mode = False): method batchBackward (line 43) | def batchBackward(self, dY, cache): method costFunc (line 55) | def costFunc(self, ds, batch, params): method singleBatch (line 105) | def singleBatch(self, ds, batch, params): method eval (line 153) | def eval(self, ds, split, params): FILE: src/deep_dialog/nlu/utils.py function initWeights (line 11) | def initWeights(n,d): function mergeDicts (line 17) | def mergeDicts(d0, d1): FILE: src/deep_dialog/qlearning/dqn.py class DQN (line 10) | class DQN: method __init__ (line 12) | def __init__(self, input_size, hidden_size, output_size): method getStruct (line 28) | def getStruct(self): method fwdPass (line 33) | def fwdPass(self, Xs, params, **kwargs): method bwdPass (line 76) | def bwdPass(self, dY, cache): method batchForward (line 115) | def batchForward(self, batch, params, predict_mode = False): method batchDoubleForward (line 132) | def batchDoubleForward(self, batch, params, clone_dqn, predict_mode = ... method batchBackward (line 155) | def batchBackward(self, dY, cache): method costFunc (line 168) | def costFunc(self, batch, params, clone_dqn): method singleBatch (line 231) | def singleBatch(self, batch, params, clone_dqn): method predict (line 280) | def predict(self, Xs, params, **kwargs): FILE: src/deep_dialog/qlearning/dqn_torch.py class DQN (line 9) | class DQN(nn.Module): method __init__ (line 10) | def __init__(self, input_size, hidden_size, output_size): method forward (line 20) | def forward(self, x): method predict (line 25) | def predict(self, x): FILE: src/deep_dialog/qlearning/utils.py function initWeight (line 11) | def initWeight(n,d): function mergeDicts (line 17) | def mergeDicts(d0, d1): FILE: src/deep_dialog/usersims/user_model.py class SimulatorModel (line 9) | class SimulatorModel(nn.Module): method __init__ (line 10) | def __init__(self, method forward (line 25) | def forward(self, s, a): method predict (line 36) | def predict(self, s, a): FILE: src/deep_dialog/usersims/usersim.py class UserSimulator (line 12) | class UserSimulator: method __init__ (line 15) | def __init__(self, movie_dict=None, act_set=None, slot_set=None, start... method initialize_episode (line 28) | def initialize_episode(self): method next (line 38) | def next(self, system_action, *argv): method set_nlg_model (line 41) | def set_nlg_model(self, nlg_model): method set_nlu_model (line 44) | def set_nlu_model(self, nlu_model): method add_nl_to_action (line 47) | def add_nl_to_action(self, user_action): FILE: src/deep_dialog/usersims/usersim_model.py class ModelBasedSimulator (line 15) | class ModelBasedSimulator(UserSimulator): method __init__ (line 18) | def __init__(self, movie_dict=None, act_set=None, slot_set=None, start... method initialize_episode (line 55) | def initialize_episode(self): method _sample_action (line 78) | def _sample_action(self): method _sample_goal (line 123) | def _sample_goal(self, goal_set): method prepare_user_goal_representation (line 129) | def prepare_user_goal_representation(self, user_goal): method sample_from_buffer (line 144) | def sample_from_buffer(self, batch_size): method train (line 158) | def train(self, batch_size=1, num_batches=1): method train_by_iter (line 191) | def train_by_iter(self, batch_size=1, num_batches=1): method next (line 221) | def next(self, s, a): method predict (line 273) | def predict(self, s, a): method register_user_goal (line 276) | def register_user_goal(self, goal): method action_index (line 279) | def action_index(self, act_slot_response): method register_experience_replay_tuple (line 300) | def register_experience_replay_tuple(self, s_t, agent_a_t, s_tplus1, r... method prepare_state_representation (line 326) | def prepare_state_representation(self, state): FILE: src/deep_dialog/usersims/usersim_rule.py class RuleSimulator (line 20) | class RuleSimulator(UserSimulator): method __init__ (line 23) | def __init__(self, movie_dict=None, act_set=None, slot_set=None, start... method initialize_episode (line 41) | def initialize_episode(self): method _sample_action (line 70) | def _sample_action(self): method _sample_goal (line 113) | def _sample_goal(self, goal_set): method get_goal (line 119) | def get_goal(self): method corrupt (line 123) | def corrupt(self, user_action): method debug_falk_goal (line 152) | def debug_falk_goal(self): method next (line 169) | def next(self, system_action): method response_confirm_answer (line 222) | def response_confirm_answer(self, system_action): method response_thanks (line 243) | def response_thanks(self, system_action): method response_request (line 273) | def response_request(self, system_action): method response_multiple_choice (line 324) | def response_multiple_choice(self, system_action): method response_inform (line 337) | def response_inform(self, system_action): function main (line 451) | def main(params): FILE: src/draw_learning_curve.py function read_performance_records (line 13) | def read_performance_records(path): function load_performance_file (line 22) | def load_performance_file(path): function draw_learning_curve (line 38) | def draw_learning_curve(numbers): function main (line 51) | def main(params): FILE: src/run.py function save_model (line 304) | def save_model(path, agt, success_rate, agent, best_epoch, cur_epoch): function save_performance_records (line 318) | def save_performance_records(path, agt, records): function simulation_epoch (line 332) | def simulation_epoch(simulation_epoch_size): function simulation_epoch_for_training (line 360) | def simulation_epoch_for_training(simulation_epoch_size, grounded_for_mo... function warm_start_simulation (line 398) | def warm_start_simulation(): function warm_start_simulation_preload (line 438) | def warm_start_simulation_preload(): function run_episodes (line 449) | def run_episodes(count, status):