Commit a3b5a6be by Vik Paruchuri

Adding in a test

parent b6d19aca
cv_pred actual
\ No newline at end of file
...@@ -45,6 +45,10 @@ cv_preds=util_functions.gen_cv_preds(clf,train_feats,scores) ...@@ -45,6 +45,10 @@ cv_preds=util_functions.gen_cv_preds(clf,train_feats,scores)
kappa=util_functions.quadratic_weighted_kappa(cv_preds,scores) kappa=util_functions.quadratic_weighted_kappa(cv_preds,scores)
outfile=open("cvout.tsv",'w+')
outfile.write("cv_pred" + "\t" + "actual")
for i in xrange(0,len(cv_preds)):
outfile.write("{0}\t{1}".format(cv_preds[i],scores[i]))
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