libcity.model.road_representation.ChebConv¶
-
class
libcity.model.road_representation.ChebConv.ChebConv(config, data_feature)[源代码]¶ 基类:
libcity.model.abstract_traffic_state_model.AbstractTrafficStateModel-
calculate_loss(batch)[源代码]¶ - 参数
batch – dict, need key ‘node_features’, ‘node_labels’, ‘mask’
Returns:
-
forward(batch)[源代码]¶ 自回归任务
- 参数
batch – dict, need key ‘node_features’ contains tensor shape=(N, feature_dim)
- 返回
N, feature_dim
- 返回类型
torch.tensor
-
training: bool¶
-