Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running the examples #1

Open
vedina opened this issue Oct 7, 2017 · 0 comments
Open

Error when running the examples #1

vedina opened this issue Oct 7, 2017 · 0 comments

Comments

@vedina
Copy link

vedina commented Oct 7, 2017

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.
@vedina vedina changed the title Error when running test.py Error when running the examples Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant