GSgnnNodeModelBase
- class graphstorm.model.GSgnnNodeModelBase(*args, **kwargs)
Bases:
GSgnnNodeModelInterface,GSgnnModelBaseGraphStorm base model class for node prediction tasks.
This base class extends GraphStorm
GSgnnModelBaseandGSgnnNodeModelInterface. When users want to define a customized node prediction GNN model and train the model in GraphStorm, the model class needs to inherit from this base class, and implement the required methods includingforward(),predict(),save_model(),restore_model()andcreate_optimizer().