We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39757b9 commit 4d8c569Copy full SHA for 4d8c569
pyrdf2vec/samplers/wide.py
@@ -85,9 +85,7 @@ def get_weight(self, hop: Hop) -> float:
85
without the sampling strategy having been trained.
86
87
"""
88
- if not (
89
- self._pred_degs or self._obj_degs or not self._neighbor_counts
90
- ):
+ if not (self._pred_degs or self._obj_degs or self._neighbor_counts):
91
raise ValueError(
92
"You must call the `fit(kg)` method before get the weight of"
93
+ " a hop."
0 commit comments