What are hops, and how do I control sampling?
A hop follows one relationship in the graph. In a graph linking customers to orders and orders to line items, one hop reaches a customer’s orders and two hops reach their line items.
For each training or prediction example, Kumo samples connected rows and their features. The fanout sets how many neighbors to request per node and relationship at each hop.
Set fanouts on the model plan before fitting:
This specifies one candidate configuration: up to 20 neighbors per node and relationship at the first hop, then up to 10 at the second. Sparse neighborhoods return fewer rows. The counts do not set a total neighborhood size.
Use HopConfig and NumNeighborsConfig for relationship and direction overrides. A count of 0 skips a relationship at that hop; -1 requests all neighbors. Adaptive sampling can exceed nominal fanouts at later hops to compensate for sparse earlier hops, and requires nonnegative counts.
More hops or larger fanouts increase the context and resource requirements. See Neighbor Sampling for supported values and overrides.