KDEm
KDEm copied to clipboard
Error when running the examples
Error running test.py
Running python test.py synuni
gives the following error
Traceback (most recent call last):
File "test.py", line 38, in <module>
syn_mix.run_test_mix(m=200, n=100, k=50)
File "KDEm/test_syn_mix.py", line 102, in run_test_mix
np.savetxt(".//measure_syn//syn_auc_avg_mix"+"_"+str(lbda)+"_"+str(p_unre)+".txt",avg_m, fmt='%.4f')
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1098, in savetxt
fh = open(fname, 'w')
IOError: [Errno 2] No such file or directory: './/measure_syn//syn_auc_avg_mix_10_0.1.txt'
Creating the folder resolves the issue, would be nice to include in either documentation or the code
mkdir measure_syn
Error when running python test.py realpop
downloaded and copied the data as in the README
/KDEm/CRH.py:40: RuntimeWarning: divide by zero encountered in double_scalars
err = la.norm(truth-truth_old)/la.norm(truth_old)
End test.