Fixed error message when no features are present.
This commit is contained in:
parent
87e978e415
commit
b142770576
@ -231,7 +231,7 @@ class SampleAndAggregate(GeneralizedModel):
|
||||
else:
|
||||
self.embeds = None
|
||||
if features is None:
|
||||
if identity_dim is None:
|
||||
if identity_dim == 0:
|
||||
raise Exception("Must have a positive value for identity feature dimension if no input features given.")
|
||||
self.features = self.embeds
|
||||
else:
|
||||
|
@ -53,7 +53,7 @@ class SupervisedGraphsage(models.SampleAndAggregate):
|
||||
else:
|
||||
self.embeds = None
|
||||
if features is None:
|
||||
if identity_dim is None:
|
||||
if identity_dim == 0:
|
||||
raise Exception("Must have a positive value for identity feature dimension if no input features given.")
|
||||
self.features = self.embeds
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user