コード例 #1
0
def run_train_split_test(method, moea, target):
    moea_name = dictionaries.get_moea_name(moea)
    target_name = dictionaries.get_target_composition(target)
    method_name = dictionaries.get_model_method_name(method)
    folder_name = 'split-train/' + method_name +'/'+ moea_name + '/' + target_name
    type = 2
    helpers.test_model(folder_name=folder_name, type = type, predict_model=method)
コード例 #2
0
def run_msdp_test(method, moea, target):
    moea_name = dictionaries.get_moea_name(moea)
    target_name = dictionaries.get_target_composition(target)
    method_name = dictionaries.get_model_method_name(method)
    folder_name = 'multi-objective/' + method_name +'/'+ moea_name + '/' + target_name
    type = 2
    helpers.test_model(folder_name=folder_name, type = type, predict_model=method)
コード例 #3
0
def run_msdp_train(moea, targets, predict_model):
    moea_name = dictionaries.get_moea_name(moea)
    predict_model_name = dictionaries.get_model_method_name(predict_model)
    targets_name = dictionaries.get_target_composition(targets)
    folder_name = 'multi-objective/' + predict_model_name + '/' + moea_name + '/' + targets_name
    l = -20
    u = 20
    helpers.training_record_for_msdp(save_folder=folder_name,
                                     target=targets,
                                     predict_model=predict_model,
                                     l=l,
                                     u=u,
                                     moea=moea)
コード例 #4
0
def split_train_test_msdp(moea, targets, predict_model, validation_size=0.2):
    moea_name = dictionaries.get_moea_name(moea)
    predict_model_name = dictionaries.get_model_method_name(predict_model)
    targets_name = dictionaries.get_target_composition(targets)
    folder_name = 'split-train/' + predict_model_name + '/' + moea_name + '/' + targets_name
    l = -20
    u = 20
    helpers.train_validation_for_msdp(save_folder=folder_name,
                                      target=targets,
                                      predict_model=predict_model,
                                      l=l,
                                      u=u,
                                      moea=moea,
                                      validation_size=validation_size)
コード例 #5
0
def run_msdp_FPA_L1_MSE_train(moea):
    target_name = 'FPA_L1_MSE'
    save_file = dictionaries.get_moea_name(moea) + '/' + target_name
    target = [0, 3, 4]
    predict_model = 'linear'
    l = -20
    u = 20
    maxgen = 100
    drawing = 0
    moea = moea
    helpers.training_record_for_msdp(save_file=save_file,
                                     target=target,
                                     predict_model=predict_model,
                                     l=l,
                                     u=u,
                                     moea=moea,
                                     drawing=drawing,
                                     maxgen=maxgen)