def separate_bags(bags): 
    """
    Seperates the positive and negative bags
    takes a list of bags as input and returns list of indices for positive and negative bags
    pos, neg=separate_bags(bags)
    """
    #random.shuffle(bags)
    pos_bags=[]
    neg_bags=[]
    for ind in range (len(bags)):
        if bags[ind].label==1.0:
            pos_bags+=[ind]
        else:
            neg_bags+=[ind]
    return pos_bags, neg_bags