def cal_Labels(files):
    """
    Generate the labels for supervised learning.
    Number of files for testset1 = 2148, testset2 = 984.
    
    :param files: No. of files in the dataset
    :return: labels
    """
    range_low = files*0.7
    range_high = files*1.0
    label = []
    for i in range(0,files):
        if(i<range_low):
            label.append(0)
        elif(i >= range_low and i <= range_high):
            label.append(1)
        else:
            label.append(2)
    return label