def METHOD_NAME(
        modelName,
        data,
        config,
        logFile,
        logDir,
        logHead,
        crossValidation,
        bestTrialRetraining=False,
        transferLearning=False,
        modelPredict=False
    ):
    objectiveRF = Objective(modelName=modelName, data=data, config=config,
                        logFile=logFile, logDir=logDir, logHead=logHead)
    # add goal and model specific settings
    if bestTrialRetraining:
        objectiveRF = addBestTrialRetrainingSettings(objectiveRF)
    elif modelPredict:
        objectiveRF = addModelPredictSettings(objectiveRF)
    else:
        objectiveRF = addHpoSettings(objectiveRF, crossValidation)
    return objectiveRF