Module Import alias Import alias Import alias identifier Assign NameStore Num Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword NameLoad keyword Num keyword Num keyword ListLoad keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword Call AttributeLoad NameLoad attr Num Num Num keyword Num keyword NameLoad keyword Num keyword Num keyword ListLoad Str keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Call AttributeLoad NameLoad attr Num Num Num keyword Num keyword Num keyword Num keyword NameLoad keyword Num keyword Num keyword ListLoad Str keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num keyword Call AttributeLoad NameLoad attr Num Num Num keyword Num keyword Num keyword NameLoad keyword Num keyword Num keyword ListLoad Str keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword Call AttributeLoad NameLoad attr Num Num Num keyword Call AttributeLoad NameLoad attr Num Num Num keyword Call AttributeLoad NameLoad attr Num Num keyword Num keyword Num keyword Num keyword Num keyword NameLoad keyword Num keyword Num keyword ListLoad Str Str Str keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad BinOpAdd Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Str Str attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad BinOpAdd NameLoad Call AttributeLoad Str attr NameLoad Str attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num NameLoad Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareLt SubscriptLoad NameLoad Index Str Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body Return TupleLoad Num Call NameLoad NameLoad orelse Return TupleLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad keyword ListLoad keyword ListLoad keyword ListLoad keyword ListLoad keyword ListLoad keyword ListLoad keyword ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad
N/A N/A json N/A os N/A numpy np N/A model_version 2 N/A case_one N/A dict trials 500 completed 100 crashed -100 open 1 alpha 0.75 epsilon 0.15 gamma 0.99 nb_actions 5 model model_version epsilon_decay 0.9 epsilon_action 6000 change_values N/A train True N/A case_two N/A dict trials 500 completed 100 crashed -100 open 1 alpha 0.75 epsilon 0.15 gamma N/A N/A np arange 0.1 1.1 0.1 nb_actions 5 model model_version epsilon_decay 0.9 epsilon_action 6000 change_values N/A gamma train True N/A case_three N/A dict trials 200 completed 500 crashed -100 open 5 alpha N/A N/A np arange 0.1 1.1 0.1 epsilon 0.75 gamma 0.7 nb_actions 5 model model_version epsilon_decay 0.9 epsilon_action 6000 change_values N/A alpha train True N/A case_four N/A dict trials 550 completed 100 crashed -100 open 1 alpha 0.65 epsilon N/A N/A np arange 0.1 1.1 0.1 gamma 0.7 nb_actions 5 model model_version epsilon_decay 0.9 epsilon_action 6000 change_values N/A epsilon train True N/A case_five N/A dict trials 550 completed N/A N/A np arange 50 235 20 crashed N/A N/A np arange -50 -235 -20 open N/A N/A np arange -5 5 alpha 0.75 epsilon 0.15 gamma 0.7 nb_actions 5 model model_version epsilon_decay 0.9 epsilon_action 6000 change_values N/A completed crashed open train True N/A case_lookup N/A dict case_one case_one case_two case_two case_three case_three case_four case_four case_five case_five save_results N/A N/A case settings results N/A N/A N/A 
    Save all results to a JSON file

    :param case: str
    :param settings: dict
    :param results: list
    :return: None
     N/A f N/A N/A N/A open N/A N/A N/A os path join N/A N/A os getcwd Results case N/A N/A N/A Model{} format N/A settings N/A model .json w write N/A N/A json dumps results N/A load_results N/A N/A directory model N/A N/A N/A 
    Loading the Settings File

    :param directory: str
    :param model: int
    :return: dict
     N/A N/A N/A json loads N/A N/A N/A open N/A directory N/A N/A /Model{}.json format model r read N/A check_files N/A N/A settings case value_iter N/A N/A N/A 
    In case the Train File Stops...

    :param settings: dict
    :param case: str
    :param value_iter: int
    :return: Boolean
     N/A name N/A N/A model_{}_case_{}_iter_{} format N/A settings N/A model N/A N/A N/A case split _ N/A 1 value_iter N/A path N/A N/A N/A N/A N/A os path join N/A N/A os getcwd Results case N/A N/A /Model{} format N/A settings N/A model .json N/A results_file N/A N/A N/A os path isfile path N/A N/A N/A settings N/A model 3 N/A N/A path N/A N/A N/A os path join N/A N/A os getcwd Model/NN_Model/ N/A name .pkl N/A model_saved N/A N/A N/A os path isfile path N/A N/A path N/A N/A N/A os path join N/A N/A os getcwd Model/NN_Model/ N/A name _weights.h5 N/A model_saved N/A N/A N/A os path isfile path N/A N/A results_file model_saved N/A N/A continue_on True N/A N/A continue_on False N/A N/A continue_on name N/A get_indicies N/A N/A data ind N/A 0 N/A N/A 
    Get the number of Iterations Required for Dictionary

    :param data: dict
    :param ind: int
    :return: tuple(int, dict)
     N/A N/A N/A len N/A data N/A change_values 0 N/A N/A N/A 10 N/A get_settings data N/A N/A N/A 1 data N/A get_settings N/A N/A dictionary ind N/A None 0 N/A N/A 
    Get Next value in dictionary

    :param dictionary: dict
    :param ind: int
    :return: dict
     N/A new_dict N/A N/A dictionary copy N/A each_value N/A dictionary N/A change_values N/A N/A N/A new_dict N/A each_value N/A N/A dictionary N/A each_value N/A ind N/A new_dict N/A N/A results N/A dict time_chart N/A final_location N/A best_test N/A q_plot N/A model_names N/A q_matrix N/A paths N/A N/A t_array N/A N/A f_array N/A N/A b_array N/A N/A path N/A