Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the haversine distance is no use for DBScan when Dimension <= 15000 #16

Open
TanYufei opened this issue Aug 20, 2021 · 0 comments
Open

Comments

@TanYufei
Copy link

TanYufei commented Aug 20, 2021

method fit() in DBScan:

RadiusNeighbors rnModel = (new RadiusNeighbors(this.data, (new RadiusNeighborsParameters(this.eps)).setSeed(this.getSeed()).setMetric(this.getSeparabilityMetric()).setVerbose(false))).fit();
                this.info("fit RadiusNeighbors model in " + rnTimer.toString());

code for choosing BALL_TREE or KD_TREE to use:

private static BaseNeighborsModel.NeighborsAlgorithm delegateAlgorithm(RealMatrix arm) {
            int mn = arm.getColumnDimension() * arm.getRowDimension();
            return mn > 15000 ? BALL_TREE : KD_TREE;
        }

So, we can not use haversine distance when mn<=15000.(KD_TREE do not suport haversine distance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant