def reduce_names(l):
    """Reduce the names in the list to acronyms, if possible.

    Args:
        l (list(str)): list of names to convert.

    Returns:
        (list(str)): list of converted names.
    """
    for i, item in enumerate(l):
        if item == 'QuadraticDiscriminantAnalysis':
            l[i] = 'QDA'
        elif item == 'KNeighborsClassifier':
            l[i] = 'KNN'
        elif item == 'RandomForestClassifier':
            l[i] = 'RandomForest'
        elif item == 'LogisticRegression':
            l[i] = 'LogReg'
    return l