Commit e1ea42a1 authored by alessiamarcolini's avatar alessiamarcolini
Browse files

Remove unused imports

parent fc86cebf
......@@ -4,10 +4,8 @@
## Requires Python >= 2.7, mlpy >= 3.5
from __future__ import division
import numpy as np
import os.path
import mlpy
from input_output import load_data
import performance as perf
from scaling import *
......@@ -86,6 +84,7 @@ if TSLABELSFILE is not None:
# write output files
# save MCC_train and MCC_validation
fout = open(OUTFILE + "_MCC_scores.txt", "w")
print('ciao')
fout.write("MCC_train\t%.5f\n" % (perf.KCCC_discrete(y_tr, p_tr)))
fout.write("MCC_validation\t%.5f\n" % (perf.KCCC_discrete(y_ts, p_ts)))
fout.close()
......@@ -115,4 +114,3 @@ fout.write("SAMPLE\tCLASS 0\tCLASS 1\n")
for i in range(len(sample_names_ts)):
fout.write("%s\t%f\t%f\n" % (sample_names_ts[i], prob_ts[i,0], prob_ts[i,1]))
fout.close()
Supports Markdown
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