project_dis_restoration.train_IL_BC_hybrid_feature_line

Module Contents

Classes

DictList

dict() -> new empty dictionary

Agent

Functions

logger_obj(logger_name, level=logging.DEBUG, verbose=0)

Method to return a custom logger with the given name and level

main_hybrid_behavior_cloning(output_path)

Attributes

ENV_NAME_1

ENV_NAME_2

NUM_TRAIN_EPISODES

NUM_TOTAL_EPISODES

MAX_DISTURBANCE

MIN_DISTURBANCE

output_path

project_dis_restoration.train_IL_BC_hybrid_feature_line.ENV_NAME_1 = RestorationDisEnv-v0
project_dis_restoration.train_IL_BC_hybrid_feature_line.ENV_NAME_2 = RestorationDisVarConEnv-v0
project_dis_restoration.train_IL_BC_hybrid_feature_line.NUM_TRAIN_EPISODES = 2000
project_dis_restoration.train_IL_BC_hybrid_feature_line.NUM_TOTAL_EPISODES = 2000
project_dis_restoration.train_IL_BC_hybrid_feature_line.MAX_DISTURBANCE = 2
project_dis_restoration.train_IL_BC_hybrid_feature_line.MIN_DISTURBANCE = 2
class project_dis_restoration.train_IL_BC_hybrid_feature_line.DictList

Bases: dict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

__setitem__(self, key, value)

Set self[key] to value.

project_dis_restoration.train_IL_BC_hybrid_feature_line.logger_obj(logger_name, level=logging.DEBUG, verbose=0)

Method to return a custom logger with the given name and level

class project_dis_restoration.train_IL_BC_hybrid_feature_line.Agent(env, output_path, log_level=logging.DEBUG)
get_expert_policy(self, env, s0)

get the expert policy by solving the full-period restoration problem

load_profile(self, env, load_status)
convert_tieline_action(self, s1_tieline, s0_tieline)
Parameters
  • s1_tieline – current tieline status

  • s0_tieline – previsou tieline status

Returns

integer action from 0 to 5

policy_hybrid(self, env, s_high, s_low, mode)
find_float_key(self, dict, near_key)
run_train(self, env, s0)
run_test(self, env, s0)
project_dis_restoration.train_IL_BC_hybrid_feature_line.main_hybrid_behavior_cloning(output_path)
project_dis_restoration.train_IL_BC_hybrid_feature_line.output_path