libcity.model.road_representation.ChebConv¶
-
class
libcity.model.road_representation.ChebConv.ChebConv(config, data_feature)[source]¶ Bases:
libcity.model.abstract_traffic_state_model.AbstractTrafficStateModel-
calculate_loss(batch)[source]¶ - Parameters
batch – dict, need key ‘node_features’, ‘node_labels’, ‘mask’
Returns:
-
forward(batch)[source]¶ 自回归任务
- Parameters
batch – dict, need key ‘node_features’ contains tensor shape=(N, feature_dim)
- Returns
N, feature_dim
- Return type
torch.tensor
-
training: bool¶
-