def get_class(y):
    """
    Get the class name depending on y value
    Parameters
    ----------
    y: int [0,1,2]

    Returns
    -------
    Name of class
    """
    y_string = []
    for i in range(len(y)):
        if y[i] == 0:
            y_string.append('AD')
        if y[i] == 1:
            y_string.append('non-AD/MCI')
        if y[i] == 2:
            y_string.append('MCI')

    return y_string