Closed nnzhan closed 5 years ago
I think this is a problem caused by the division syntax of the Python 2.7 version. You can run this code in Python 3.5.
thanks, it solves my problem
Thanks @zwd2016 . Glad it solves the problem.
Hi can you help me with this error. When generating data, I got the following logs:
C:\Users\mlvis\Documents\Emma\DCRNN>python -m scripts.generate_training_data --output_dir=data/METR-LA --traffic_df_filename=data/metr-la.h5 Generating training data Traceback (most recent call last): File "C:\Users\mlvis\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "C:\Users\mlvis\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\mlvis\Documents\Emma\DCRNN\scripts\generate_training_data.py", line 123, in
main(args) File "C:\Users\mlvis\Documents\Emma\DCRNN\scripts\generate_training_data.py", line 108, in main generate_train_val_test(args) File "C:\Users\mlvis\Documents\Emma\DCRNN\scripts\generate_training_data.py", line 72, in generate_train_val_test add_day_in_week=False, File "C:\Users\mlvis\Documents\Emma\DCRNN\scripts\generate_training_data.py", line 47, in generate_graph_seq2seq_io_data x_t = data[t + x_offsets, ...] MemoryError
Could you please help me fix the error. When I run
I get the following logs