Fixed error message when no features are present.

This commit is contained in:
williamleif 2017-09-16 14:26:47 -07:00
parent 87e978e415
commit b142770576
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: