Skip to content

SizePolicy

ferreus_rbf.config.SizePolicy

Controls whether a size is calculated automatically or provided by the user. Auto calculates the size when the hierarchy or tree is built. Fixed(n) uses the provided positive value without adjusting it.

Use SizePolicy.Auto to calculate a size when building the hierarchy or tree, or SizePolicy.Fixed(n) to retain an explicit positive limit.

from ferreus_rbf.config import DDMParams, SizePolicy

ddm = DDMParams(
    leaf_threshold=256,
    overlap_knn=16,
    coarse_reduction_factor=128,
    coarse_threshold=SizePolicy.Auto,
)