polyvore_outfits.py
def load_compatibility_questions(fn, im2index, id2im):
    """ Returns the list of compatibility questions for the
        split """
    with open(fn, 'r') as f:
        lines = f.readlines()

    compatibility_questions = []
    for line in lines:
        data = line.strip().split()
        compat_question, _, _ = parse_iminfo(data[1:], im2index, id2im)
        compatibility_questions.append((compat_question, int(data[0])))

    return compatibility_questions
 Returns the list of compatibility questions for the
        split 
Returns the list of compatibility questions for the
split
Returns the list of compatibility questions for the split
def load_compatibility_questions(fn, im2index, id2im):
    with open(fn, 'r') as f:
        lines = f.readlines()
    compatibility_questions = []
    for line in lines:
        data = line.strip().split()
        compat_question, _, _ = parse_iminfo(data[1:], im2index, id2im)
        compatibility_questions.append((compat_question, int(data[0])))
    return compatibility_questions
def load_compatibility_questions ( fn , im2index , id2im ) : with open ( fn , 'r' ) as f : lines = f . readlines ( ) compatibility_questions = [ ] for line in lines : data = line . strip ( ) . split ( ) compat_question , _ , _ = parse_iminfo ( data [ 1 : ] , im2index , id2im ) compatibility_questions . append ( ( compat_question , int ( data [ 0 ] ) ) ) return compatibility_questions
Returns the list of compatibility questions for the
split
Returns the list of compatibility questions for the split
""" Returns the list of compatibility questions for the
        split """
fn
im2index
id2im