How to infer the label for a new node with a model trained using DGL and RGCN?

Hello!

Following the RGCN tutorial, I was able to train a model in a semi-supervised approach to get predicted labels for all the nodes. It is a binary classification.

Now, I’m wondering how to infer the label for a new node using the already trained model. I’ve already tried add_edges but it seems this method is not working for heterogeneous graph. I’ve got the following error message: “Mutation is not supported in heterograph.”

Is there any tutorial on how to do that? Thanks in advance!

Hi, mutation on heterograph should have already been supported in 0.5+. Which version are you using?

Hi @minjie, sorry for the late reply. I’ve updated my version and it worked. Thanks!