GeoDS / LSTM-TrajGAN

LSTM-TrajGAN: A Deep Learning Approach to Trajectory Privacy Protection
68 stars 26 forks source link

I get this error when I run this line of code:python3 TUL_test.py data/train_latlon.csv results/syn_traj_test.csv 100 #3

Closed jia-er closed 2 years ago

jia-er commented 2 years ago
Traceback (most recent call last):
  File "TUL_test1.py", line 305, in <module>
    pred_y_test = np.array(classifier2.predict(cls_x_test))
  File "/usr/local/lib/python3.5/dist-packages/keras/engine/training.py", line 1169, in predict
    steps=steps)
  File "/usr/local/lib/python3.5/dist-packages/keras/engine/training_arrays.py", line 294, in predict_loop
    batch_outs = f(ins_batch)
  File "/usr/local/lib/python3.5/dist-packages/keras/backend/tensorflow_backend.py", line 2715, in __call__
    return self._call(inputs)
  File "/usr/local/lib/python3.5/dist-packages/keras/backend/tensorflow_backend.py", line 2675, in _call
    fetched = self._callable_fn(*array_vals)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 1439, in __call__
    run_metadata_ptr)
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[28,126] = 16 is not in [0, 10)
     [[{{node emb_category_1/embedding_lookup}}]]