论文理论部分:论文笔记:lunLarge Language Models are Zero-Shot Next LocationPredictors-CSDN博客
2 Data
2.1 Dataset类
2.2 下载文件
2.3 get_dataset
2.4 get_trajectories
trajectory_split暂时略去
# save the test dictionary and the true locations dictionaryutils.create_dir(self.save_dir)with open(os.path.join(self.save_dir, 'test_dictionary_'+self.dataset_name+'_'+self.trajectory_mode+'.json'), 'w') as f:json.dump(self.test_dictionary, f)with open(os.path.join(self.save_dir, 'true_locations_'+self.dataset_name+'_'+self.trajectory_mode+'.json'), 'w') as f:json.dump(self.true_locations, f)