Skip to content

🔢 Not computing the node features in HungaryCPDataLoader #86

@nithinmanoj10

Description

@nithinmanoj10

Was going through the methods present in the HungaryCPDataLoader during the dataset abstraction task and noticed the following in the _get_targets_and_features method

Our Version

def _get_targets_and_features(self):
    stacked_target = np.array(self._dataset["FX"])
    self._all_targets = np.array(
        [stacked_target[i, :].T for i in range(stacked_target.shape[0])]
    )

But inside the PyTorch Geometric Temporal version they are computing the features list

PyG-T Version

def _get_targets_and_features(self):
    stacked_target = np.array(self._dataset["FX"])
    self.features = [
        stacked_target[i : i + self.lags, :].T
        for i in range(stacked_target.shape[0] - self.lags)
    ]
    self.targets = [
        stacked_target[i + self.lags, :].T
        for i in range(stacked_target.shape[0] - self.lags)
    ]

Need to confirm why we omitted this computation in our dataloader and add it back in if necessary.

Metadata

Metadata

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions