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:
|
else:
|
||||||
self.embeds = None
|
self.embeds = None
|
||||||
if features is 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.")
|
raise Exception("Must have a positive value for identity feature dimension if no input features given.")
|
||||||
self.features = self.embeds
|
self.features = self.embeds
|
||||||
else:
|
else:
|
||||||
|
@ -53,7 +53,7 @@ class SupervisedGraphsage(models.SampleAndAggregate):
|
|||||||
else:
|
else:
|
||||||
self.embeds = None
|
self.embeds = None
|
||||||
if features is 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.")
|
raise Exception("Must have a positive value for identity feature dimension if no input features given.")
|
||||||
self.features = self.embeds
|
self.features = self.embeds
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user