I have something similar to gvp-pytorch/data.py at main · drorlab/gvp-pytorch · GitHub, but with targets
        data = torch_geometric.data.Data(x=X_ca, seq=seq, name=name,
                                         node_s=node_s, node_v=node_v,
                                         edge_s=edge_s, edge_v=edge_v,
                                         edge_index=edge_index, mask=mask, 
                                         targets=targets)

my question is I need to split this to data and targets, what is the best practice?
to get targets only i can use data[“targets”], but how to get everything else but targets?
        torch_geometric.data.Data(x=X_ca, seq=seq, name=name,
                                 node_s=node_s, node_v=node_v,
                                 edge_s=edge_s, edge_v=edge_v,
                                 edge_index=edge_index, mask=mask)