Commit 80a39f7c by Vik Paruchuri

Write out proper summary stats

parent afbe0bf0
...@@ -86,11 +86,11 @@ for filename in filenames: ...@@ -86,11 +86,11 @@ for filename in filenames:
outfile.close() outfile.close()
outfile=open(data_path + "outdata/summary.tsv",'w+') outfile=open(data_path + "outdata/summary.tsv",'w+')
outfile.write("err\tkappa\tpercent_error\thuman_err\thuman_kappa\thuman_percent_error\n") outfile.write("set\terr\tkappa\tpercent_error\thuman_err\thuman_kappa\thuman_percent_error\n")
for i in xrange(0,len(cv_preds)): for i in xrange(0,len(cv_preds)):
outfile.write("{err}\t{kappa}\t{percent_error}\t{human_err}\t{human_kappa}\t{human_percent_error}\n".format( outfile.write("{set}\t{err}\t{kappa}\t{percent_error}\t{human_err}\t{human_kappa}\t{human_percent_error}\n".format(
err=errs,kappa=kappas,percent_error=percent_errors, human_err=human_errs, set=i+1,err=errs[i],kappa=kappas[i],percent_error=percent_errors[i], human_err=human_errs[i],
human_kappa=human_kappas, human_percent_error=human_percent_errors)) human_kappa=human_kappas[i], human_percent_error=human_percent_errors[i]))
outfile.close() outfile.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment