Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_add_external_information如何使用 #387

Open
tanxiaoying opened this issue Jan 3, 2024 · 1 comment
Open

_add_external_information如何使用 #387

tanxiaoying opened this issue Jan 3, 2024 · 1 comment

Comments

@tanxiaoying
Copy link

您好,您的代码很优秀,我有一些问题想请教
_add_external_information如何使用,我将traffic_state_dataset.py的方法get_data里的代码块:
x_train, y_train, x_val, y_val, x_test, y_test = [], [], [], [], [], []
if self.data is None:
self.data = {}
if self.cache_dataset and os.path.exists(self.cache_file_name):
x_train, y_train, x_val, y_val, x_test, y_test = self._load_cache_train_val_test()
else:
x_train, y_train, x_val, y_val, x_test, y_test = self._generate_train_val_test()的代码改为 x_train, y_train, x_val, y_val, x_test, y_test = self._generate_train_val_test()是正确的吗

@Kazeya27
Copy link
Collaborator

_load_cache_train_val_test()方法是在跑过一个数据集并缓存之后,为了减少读取数据时间使用的。如果没有这个需求,不使用这个方法也可以的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants