def go_6():
    inp = "calibrialpha"
    for i in range(8):
        inp += "_" + str(3 * i) + "_" + str(3 * i + 1) + "_" + str(3 * i + 2)
    turk.load_external_hit(
        title="Which letters are most similar",
        description="Which of two letters is most similar to a third?",
        reward="0.10",
        keywords="letters, similarity",
        comment="Letters warmup",
        input=inp)
Example #2
0
def go_6():
    inp = "calibrialpha"
    for i in range(8):
        inp += "_" + str(3 * i) + "_" + str(3 * i + 1) + "_" + str(3 * i + 2)
    turk.load_external_hit(
        title="Which letters are most similar",
        description="Which of two letters is most similar to a third?",
        reward="0.10",
        keywords="letters, similarity",
        comment="Letters warmup",
        input=inp,
    )
Example #3
0
def go_10(): #actually used for 9, not warmup!
    inp = "calibrialpha"
    n = 26*13*25
    bp = reg_bipartite(5*n/50,n,50)
    inp = ""
    s = {}
    while True:
        inp +="calibrialpha" 
        x = bp.pop()
        for r in x:
            a = r%26
            (b,c) = decode_choose2(26,r/26)
            inp +="_"+chr(97+a)+chr(97+b)+chr(97+c)
        if not bp:
            break
        inp+="\n"
    turk.load_external_hit(title="Which letters are most similar",
                      description="Which of two letters is most similar to a third?",
                      reward="0.20",
                      keywords="letters, similarity",
                      comment="Letters take 2 alert cheaters",
                      input = inp)
Example #4
0
for r in t:
    inp += db
    for (a,b,c) in r:
        inp+="_"+str(a)+"_"+str(b)+"_"+str(c)
    inp+="\n"
    
print "Creating "+str(len(t))+" hits..."


label,t = turk.load_external_hit(url="http://65.215.1.20/faces/simp_sim4.py?instructions="+inst_shortcut,
                                 assignments=reps,
                                 input=inp,
                                 title="Compare things to see which is most similar",
                                 description="Compare things and say which is more similar",
                                 reward=payment,
                                 duration=900,
                                 autoapproval=259200,
                                 approvalrate=95,
                                 height=height,
                                 keywords="image, similarity",
                                 numapproved=48,
                                 comment=comment)    


tools.my_write(turk.log_root+"/"+label+".out_file_loc",sys.argv[3])
shutil.copy(sys.argv[2],turk.log_root+"/"+label+".trips")
shutil.copy(sys.argv[1],turk.log_root+"/"+label+".config2")


print "**** The ID of this batch is ",label
inp = ""
for r in t:
    inp += db
    for (a, b, c) in r:
        inp += "_" + str(a) + "_" + str(b) + "_" + str(c)
    inp += "\n"

print "Creating " + str(len(t)) + " hits..."

label, t = turk.load_external_hit(
    url="http://65.215.1.20/faces/simp_sim4.py?instructions=" + inst_shortcut,
    assignments=1,
    input=inp,
    title="Compare things to see which is most similar",
    description="Compare things and say which is more similar",
    reward=payment,
    duration=900,
    autoapproval=259200,
    approvalrate=95,
    height=height,
    keywords="image, similarity",
    numapproved=48,
    comment=comment)

print "Waiting 2 minutes, label", label

time.sleep(120)

#label=None
turk.wait_til_done(label)

trips2, mis = turk.results2tripsplus(label)