AI_For_Music_Composition icon indicating copy to clipboard operation
AI_For_Music_Composition copied to clipboard

UnboundLocalError: local variable 'x_train' referenced before assignment

Open Heavy02011 opened this issue 7 years ago • 0 comments

  1. did python config.py

  2. installed pypianoroll with $ pip install pypianoroll

  3. run $ python main.py

Got the following error: /home/rainer/.conda/envs/carnd-tf16/lib/python3.5/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Start experiment: lastfm_alternative_g_hybrid_d_proposed [*] Loading data... Traceback (most recent call last): File "main.py", line 122, in main() File "main.py", line 45, in main x_train = load_data() File "main.py", line 30, in load_data x_train = x_train.reshape( UnboundLocalError: local variable 'x_train' referenced before assignment

Heavy02011 avatar May 26 '18 18:05 Heavy02011