kona_drivetrain = Mod_Body()
    # Vehicle model import
    kona_vehicle = Mod_Veh(kona_power, kona_drivetrain)
    # Driver model import
    drv_kyunghan = Mod_Driver()
    # Behavior model import
    beh_driving = Mod_Behavior(drv_kyunghan)
    # Set model parameter
    fcn_set_vehicle_param(kona_drivetrain, kona_vehicle, kona_param,
                          kona_param_est)

    # RL controller
    # Idm

    cf_state_recog = DecelStateRecog()
    idm_cls = IdmClassic()
    # Agent
    K.clear_session()
    # config = tf.ConfigProto()
    # config.gpu_options.allow_growth = True
    # sess = tf.Session(config=config)
    # K.set_session(sess)

    model_conf = {
        'input_num': 8,
        'input_sequence_num': 8,
        'action_dim': 6,
        'lrn_rate': 0.0005
    }
    agent_conf = {'min_data_length': 200}
Example #2
0
kona_drivetrain = Mod_Body()
# Vehicle model import
kona_vehicle = Mod_Veh(kona_power, kona_drivetrain)
# Driver model import
drv_kyunghan = Mod_Driver()
# Behavior model import
beh_driving = Mod_Behavior(drv_kyunghan)
# Set model parameter
fcn_set_vehicle_param(kona_drivetrain, kona_vehicle, kona_param,
                      kona_param_est)

# RL controller
# Idm
idm_kh = IdmAccCf(DriverData)
cf_state_recog = DecelStateRecog()
idm_cls = IdmClassic()
# Agent
K.clear_session()
# config = tf.ConfigProto()
# config.gpu_options.allow_growth = True
# sess = tf.Session(config=config)
# K.set_session(sess)

model_conf = {
    'input_num': 8,
    'input_sequence_num': 8,
    'action_dim': 6,
    'lrn_rate': 0.001
}
agent_conf = {'min_data_length': 200}