mlpack_dbscan(1)
π mlpack_dbscan β the manual page, but make it bestie β¨
okay so real quick, this is the manpage for mlpack_dbscan(1) from the User Commands crew, and honestly? it's giving "clustering but make it fast". let's get into it π«Ά
β¨ NAME β¨
mlpack_dbscan β dbscan clustering π
πΈ SYNOPSIS πΈ
mlpack_dbscan -i unknown [-e double] [-m int] [-N bool] [-s string] [-S bool] [-t string] [-V bool] [-a unknown] [-C unknown] [-h -v]
no cap, that's the whole shape of it. now let's break it down π¦
π DESCRIPTION π
so this program implements the DBSCAN algorithm for clustering, and it does it with accelerated tree-based range search. the type of tree it uses can be parameterized, or you can just go full brute-force mode for the range search instead. your call bestie π
the input dataset you wanna cluster gets specified with --input_file (-i). the radius of each range search? that's --epsilon (-e). and the minimum number of points in a cluster? that's --min_size (-m). slay.
for saving your results, you've got --assignments_file (-a) and --centroids_file (-C). --assignments_file (-a) holds the cluster assignments of each point, and --centroids_file (-C) holds the centroids of each cluster. icon behavior β¨
the range search itself is controlled with --tree_type (-t), --single_mode (-S), and --naive (-N). here's the tea:
--tree_type (-t)controls what kind of tree is used for range search, and it can take a whole variety of values:kd,r,r-star,x,hilbert-r,r-plus,r-plus-plus,cover,ball.--single_mode (-S)forces single-tree search (so, not the default dual-tree search).--naive (-N)forces brute-force range search. no thoughts, head empty, just raw range searching π
an example usage to run DBSCAN on the dataset in input.csv with a radius of 0.5 and a minimum cluster size of 5 is below:
$ mlpack_dbscan --input_file input.csv --epsilon 0.5 --min_size 5
periodt. that's the whole vibe π₯
π REQUIRED INPUT OPTIONS π
--input_file (-i)[unknown] β the input dataset to cluster. you literally cannot skip this one bestie, it's required.
π OPTIONAL INPUT OPTIONS π
--epsilon (-e)[double] β the radius of each range search. default value is1.--help (-h)[bool] β default help info.--info[string] β print help on a specific option. default value is''.--min_size (-m)[int] β the minimum number of points for a cluster. default value is5.--naive (-N)[bool] β if set, brute-force range search (not tree-based) will be used.--selection_type (-s)[string] β if using a point selection policy, this is the type of selection to use ('ordered','random'). default value is'ordered'.--single_mode (-S)[bool] β if set, single-tree range search (not dual-tree) will be used.--tree_type (-t)[string] β if using single-tree or dual-tree search, this is the type of tree to use ('kd','r','r-star','x','hilbert-r','r-plus','r-plus-plus','cover','ball'). default value is'kd'.--verbose (-v)[bool] β display informational messages and the full list of parameters and timers at the end of execution.--version (-V)[bool] β display the version of mlpack.
π OPTIONAL OUTPUT OPTIONS π
--assignments_file (-a)[unknown] β output matrix for assignments of each point.--centroids_file (-C)[unknown] β matrix to save output centroids to.
π ADDITIONAL INFORMATION π
for further information β including relevant papers, citations, and theory β consult the documentation found at http://www.mlpack.org or included with your distribution of mlpack. iykyk π
fr fr, if you want the theory deep dive, that's where it lives.
and that's a wrap on mlpack_dbscan(1) bestie π§ this page is from mlpack-4.8.0, dated 22 June 2026, and it was so real of you to read the whole thing. go cluster something iconic πβ¨
π¦ where this page comes from
- ubuntu stonking: mlpack-bin 4.8.0-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms