Skip to content

Commit a91b6bd

Browse files
committed
chore: change default freq_thresholds for HALK
1 parent 42f0c12 commit a91b6bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pyrdf2vec/walkers/halk.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ class HALKWalker(RandomWalker):
1919
_is_support_remote: True if the walking strategy can be used with a
2020
remote Knowledge Graph, False Otherwise
2121
Defaults to True.
22-
freq_thresholds: The minimum frequency thresholds of a hop to be kept.
23-
Defaults to [0.001].
22+
freq_thresholds: The minimum frequency thresholds of a (predicate,
23+
object) hop to be kept.
24+
Defaults to [0.01].
2425
kg: The global KG used later on for the worker process.
2526
Defaults to None.
2627
max_depth: The maximum depth of one walk.
@@ -44,7 +45,7 @@ class HALKWalker(RandomWalker):
4445

4546
freq_thresholds = attr.ib(
4647
kw_only=True,
47-
factory=lambda: [0.001],
48+
factory=lambda: [0.01],
4849
type=List[float],
4950
validator=attr.validators.deep_iterable(
5051
member_validator=attr.validators.instance_of(float),

0 commit comments

Comments
 (0)