sinadabiri / Transport-Mode-GPS-CNN

Inferring transportation modes from GPS trajectories using a Convolutional Neural Network
MIT License
45 stars 18 forks source link

Data mistake!!! #2

Open naser9878 opened 5 years ago

naser9878 commented 5 years ago

I got the data from the link below link I run the LabelMatrix-TimeDays-TrajectrotyMatrix.py But Prints the "error" and does not save the Revised_Trajectory_Label_Array.pickle

A = np.where(Dates >= (float(row[0]) - Sec)) B = np.where(Dates > (float(row[1]) + Sec)) C = list(set(A[0]).intersection(B[0])) if len(C) == 0: print("error") [Mode_Trajectory.append(row[2]) for i in C] [C_list.append(i) for i in C]

what is the reason?

Tnx

yangxiaorun commented 5 years ago

I know why. The file is generated under the Combined Trajectory_Label_Geolife path. Because os.chdir switched the working path.