0

I am using GCN from Steller Graph with Cora dataset from CSV files (not default dataset). It gives me an error: raise KeyError(missing_values) at train_gen = generator.flow(train_subjects.index, train_targets).

The error is given below. Also, the link to the code is here. Any idea how to resolve the issue?

    KeyError                                  Traceback (most recent call last)
<ipython-input-42-c481c4cb28d0> in <module>
----> 1 train_gen = generator.flow(train_subjects.index, train_subjects)

4 frames
/usr/local/lib/python3.8/dist-packages/stellargraph/core/element_data.py in require_valid(self, query_ids, ilocs)
     77                 raise KeyError(missing_values[0])
     78 
---> 79             raise KeyError(missing_values)
     80 
     81     def to_iloc(self, ids, smaller_type=True, strict=False) -> np.ndarray:

KeyError: array([2065, 1877,  638,  255,  628, 2585, 2606, 2340,  338,  983,  429, ....])
wasif khan
  • 27
  • 6

0 Answers0