haikmanukyan / neural-state-machine

A lab project impletementing the Neural State Machine
13 stars 2 forks source link

how to turn data to .npy #1

Open li143212 opened 3 years ago

li143212 commented 3 years ago

excuse me,I would like to run your code,but I dont know how to turn .txt data to .npy?Could you tell me how to turn?Thank you very much!

haikmanukyan commented 3 years ago

Hi! I guess I never actually wrote an interface for that :D if you have the original repo with the .txt data (Export/Input.txt, Export/Output.txt) you must run data2np.py and extract_samples.py, after putting the correct paths in the code. And be careful cause I think it uses around 15GB of RAM.

li143212 commented 3 years ago

Hi!Thank you for your reply.I'd like to use "train_test_split.py" to get train16.npy and test16.npy,but when I use "merge_samples.py" to get dataset32.npy,I don't know how to get "p_out = 'data/outputsamples/sample%08d.npy'".So how can I get 'data/outputsamples/sample%08d.npy'?