mlpack_mean_shift(1)
π mlpack_mean_shift π
okay bestie, welcome to mlpack_mean_shift β she's a User Command from the mlpack family and she does mean shift clustering. yes. that. let's get into it π¦
β¨ SYNOPSIS β¨
mlpack_mean_shift -i unknown [-f bool] [-P bool] [-l bool] [-m int] [-r double] [-V bool] [-C unknown] [-o unknown] [-h -v]
πΈ DESCRIPTION πΈ
so this program does mean shift clustering on the dataset you hand her, and then she stores the learned cluster assignments either as a column of labels dropped right into the input dataset, or separately. your choice, queen π
the input dataset goes in with the --input_file (-i) parameter, and the radius used for the search is set with --radius (-r). the max number of iterations before she just calls it and terminates is controlled by --max_iterations (-m) β¨
the output labels can be saved with the --output_file (-o) output parameter, and the centroids of each cluster go to --centroid_file (-C).
like, for an actual example β to run mean shift clustering on the dataset data.csv and store the centroids to centroids.csv, you'd literally just do:
$ mlpack_mean_shift --input_file data.csv --centroid_file centroids.csv
ate. periodt π
π REQUIRED INPUT OPTIONS π
--input_file (-i)[unknown] β the input dataset she's gonna perform clustering on. no dataset, no clustering, no vibes. this one's mandatory fr fr.
π OPTIONAL INPUT OPTIONS π
--force_convergence (-f)[bool] β if you specify this, the mean shift algorithm keeps running regardless ofmax_iterationsuntil the clusters converge. yes she's stubborn. no she will not be stopped π€--help (-h)[bool] β the default help info. your lil safety net π«Ά--in_place (-P)[bool] β if specified, a column containing the learned cluster assignments gets added to the input dataset file. and in that case,--output_fileis overridden, so don't even bother. (Do not use with Python.) π¨--info[string] β print help on one specific option. default value is''.--labels_only (-l)[bool] β if specified, only the output labels get written to the file you gave--output_file. nothing else, just the labels β¨--max_iterations (-m)[int] β maximum number of iterations before mean shift terminates. default value1000.--radius (-r)[double] β if the distance between two centroids is less than the given radius, one of them gets removed. a radius of0or less means an estimate will be calculated and used for the radius instead. default value0.--verbose (-v)[bool] β display informational messages plus the full list of parameters and timers at the end of execution. she's a talker π¬--version (-V)[bool] β display the version of mlpack.
π OPTIONAL OUTPUT OPTIONS π
--centroid_file (-C)[unknown] β if specified, the centroids of each cluster get written to the given matrix.--output_file (-o)[unknown] β the matrix to write output labels or labeled data to.
π§ ADDITIONAL INFORMATION π§
for further information β including relevant papers, citations, and theory β go consult the documentation found at http://www.mlpack.org, or the docs included with your distribution of mlpack. iykyk π
lowkey obsessed with you for reading the whole thing. now go cluster something π
mlpack-4.8.0 Β· 22 June 2026 Β· mwah, that's the version, that's the date, that's the whole manual page bestie, slay πβ¨
π¦ 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