8000 RANSAC - residual threshold calculation · Issue #16147 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
RANSAC - residual threshold calculation #16147
@jeffreywillert

Description

@jeffreywillert

Within the RANSAC algorithm, a residual threshold is calculated:

residual_threshold = np.median(np.abs(y - np.median(y))

If more than half of the values of y are equal to the median of y, this returns a residual threshold of 0. In that case, the line

inlier_mask_subset = residuals_subset < residual_threshold

always returns zero inliers, causing a value error since inlier_mask_best is always None.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0