Esempio n. 1
0
def GenerateRichDataFromTheta(rs, sizeOfTarget, foldername, thetaFile, repeat, save):
    exp = Experiments(rs, sizeOfTarget, save, foldername,thetaFile,rs.popsizeCmaes,rs.period)
    cost = exp.runRichTrajectories(repeat)
    print("Average cost: ", cost)
    print("foldername : ", foldername)
    if (save):
        exp.saveCost()
Esempio n. 2
0
def GenerateRichDataFromTheta(rs, sizeOfTarget, foldername, thetaFile, repeat,
                              save):
    exp = Experiments(rs, sizeOfTarget, save, foldername, thetaFile,
                      rs.popsizeCmaes, rs.period)
    cost = exp.runRichTrajectories(repeat)
    print("Average cost: ", cost)
    print("foldername : ", foldername)
    if (save):
        exp.saveCost()
Esempio n. 3
0
def GenerateRichDataFromTheta(rs, target_size, foldername, thetaFile, repeat, save):
    '''
    Generate Data from a given theta file

    Input:    -target_size, size of the target, float
            -save: do we save the results (false when running CMAES)? True = Yes, False = No
    '''
    os.system("rm "+foldername+"Log/*.log")
    exp = Experiments(rs, target_size, save, foldername,thetaFile,rs.popsizeCmaes,rs.period)
    cost = exp.runRichTrajectories(repeat)
    print("Average cost: ", cost)
    print("foldername : ", foldername)
    if (save):
        exp.saveCost()
Esempio n. 4
0
def GenerateRichDataFromTheta(rs, target_size, foldername, thetaFile, repeat,
                              save):
    '''
    Generate Data from a given theta file

    Input:    -target_size, size of the target, float
            -save: do we save the results (false when running CMAES)? True = Yes, False = No
    '''
    os.system("rm " + foldername + "Log/*.log")
    exp = Experiments(rs, target_size, save, foldername, thetaFile,
                      rs.popsizeCmaes, rs.period)
    cost = exp.runRichTrajectories(repeat)
    print("Average cost: ", cost)
    print("foldername : ", foldername)
    if (save):
        exp.saveCost()