-
graphicle.calculate.jaccard_distance(mask_1: MaskBase | ndarray[Any, dtype[bool_]], mask_2: MaskBase | ndarray[Any, dtype[bool_]], weights: ndarray[Any, dtype[float64]] | None =
None) float[source] Computes the Jaccard distance between two sets.
New in version 0.3.8.
- Parameters:¶
- mask_1: MaskBase | ndarray[Any, dtype[bool_]]¶
Boolean masks, identifying which elements belong to the respective sets.
- mask_2: MaskBase | ndarray[Any, dtype[bool_]]¶
Boolean masks, identifying which elements belong to the respective sets.
- weights : ndarray[float64]¶
Weights associated with each element. If not passed, will assume weights are 1.
- Returns:¶
Jaccard distance between sets.
- Return type:¶
Last update:
Jun 27, 2025