def updateTrainPredSettings(dicSetting):
    """ Update settings in trainPredSetting.csv with dicSettings
    Args:
        dicSettings
    Returns:
        path to the generated .csv file
    """

    strFilePath = '{:s}/trainPredSetting.csv'.format(dicSetting['strDatasetDir'])
    with open(strFilePath, 'w') as bfFile:
        bfFile.write('strBaseDir,{:s}\n'.format(dicSetting['strDirSparseData']))
        bfFile.write('strFilenameTarget,{:s}/target.csv\n'.format(dicSetting['strDirSparseData']))
        bfFile.write('strFilenameMetaInfo,{:s}/metaInfo.csv\n'.format(dicSetting['strDirSparseData']))
        bfFile.write('strFilenameProtInfo,{:s}\n'.format(dicSetting['strFilePathPredOutput']))
        bfFile.write('strFilenameExprDescription,{:s}.desc\n'.format(dicSetting['strFilePathPredOutput']))
        bfFile.write('strFilenameExprParams,{:s}.params\n'.format(dicSetting['strFilePathPredOutput']))
        bfFile.write('nRows,{:d}\n'.format(dicSetting['nRows']))
        
        for strKey, value in dicSetting['dicTrainPredArgs'].items():
            bfFile.write('{:s},{:s}\n'.format(strKey, str(value)))
        
        return strFilePath