Closed stanleyjs closed 7 years ago
Ah, thank you for noticing this. I had '.'
permanently added to my PYTHONPATH
. I made a PR that should fix that: https://github.com/pnpnpn/dna2vec/pull/5. You can now call the training code from either the project root or scripts/
.
I will try to use egg and put it up on pypi.
Thanks for fixing this - I will let you know if I run into more problems getting training going, and I'll try to contribute to bugfixes as I go.
this is executed from
~/dna2vec
The reason for this is in
train_dna2vec.py
the relative path toattic_util
anddna2vec
are appended tosys.path
. Idiosyncratically, python appends the '../' from the folder that the script was called from.the work around is easy - just call the script from within
./scripts
for cleaner implementation though, it might be better to consider using an egg or some other setup that allows attic_utils and dna2vec to be called from elsewhere