mlpack_fastmks(1)

πŸ’– NAME πŸ’–

mlpack_fastmks β€” fastmks (fast max-kernel search), bestie. This page lives in the mlpack_fastmks(1) manual, and it's about to be your new hyperfixation.


🌸 SYNOPSIS 🌸

mlpack_fastmks [-w double] [-b double] [-d double] [-m unknown] [-k int] [-K string] [-N bool] [-o double] [-q unknown] [-r unknown] [-s double] [-S bool] [-V bool] [-i unknown] [-p unknown] [-M unknown] [-h -v]

✨ DESCRIPTION ✨

Okay so picture this πŸ‘‘ β€” this program finds the k maximum kernels of a set of points, using a query set and a reference set (and lowkey the reference set can totally be the same set as the query set, no drama). More specifically, literally for each point in the query set, it finds the k points in the reference set with maximum kernel evaluations. The kernel function it uses? That's chosen with the --kernel (-K) parameter. Periodt.

For example, the following command will calculate, for each point in the query set query.csv, the five points in the reference set reference.csv with maximum kernel evaluation using the linear kernel. The kernel evaluations may be saved with the kernels.csv output parameter and the indices may be saved with the indices.csv output parameter. Iconic behaviour, fr fr πŸ’…

$ mlpack_fastmks --k 5 --reference_file reference.csv --query_file query.csv --indices_file indices.csv --kernels_file kernels.csv --kernel linear

The output matrices are organized such that row i and column j in the indices matrix corresponds to the index of the point in the reference set that has j'th largest kernel evaluation with the point in the query set with index i. Row i and column j in the kernels matrix corresponds to the kernel evaluation between those two points. It's giving structured. It's giving organized. We love to see it πŸ¦‹

This program performs FastMKS using a cover tree. The base used to build the cover tree can be specified with the --base (-b) parameter. the way that one flag controls so much… obsessed


πŸŽ€ OPTIONAL INPUT OPTIONS πŸŽ€

  • --bandwidth (-w) [double] β€” Bandwidth (for Gaussian, Epanechnikov, and triangular kernels). Default value 1.
  • --base (-b) [double] β€” Base to use during cover tree construction. Default value 2.
  • --degree (-d) [double] β€” Degree of polynomial kernel. Default value 2.
  • --help (-h) [bool] β€” Default help info.
  • --info [string] β€” Print help on a specific option. Default value ''.
  • --input_model_file (-m) [unknown] β€” Input FastMKS model to use.
  • --k (-k) [int] β€” Number of maximum kernels to find. Default value 0.
  • --kernel (-K) [string] β€” Kernel type to use: 'linear', 'polynomial', 'cosine', 'gaussian', 'epanechnikov', 'triangular', 'hyptan'. Default value 'linear'.
  • --naive (-N) [bool] β€” If true, O(n^2) naive mode is used for computation.
  • --offset (-o) [double] β€” Offset of kernel (for polynomial and hyptan kernels). Default value 0.
  • --query_file (-q) [unknown] β€” The query dataset.
  • --reference_file (-r) [unknown] β€” The reference dataset.
  • --scale (-s) [double] β€” Scale of kernel (for hyptan kernel). Default value 1.
  • --single (-S) [bool] β€” If true, single-tree search is used (as opposed to dual-tree search.
  • --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 🌈

  • --indices_file (-i) [unknown] β€” Output matrix of indices.
  • --kernels_file (-p) [unknown] β€” Output matrix of kernels.
  • --output_model_file (-M) [unknown] β€” Output for FastMKS model.

🫢 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 β€” the docs are right there, go read them babe πŸ“š


and that's a wrap on mlpack_fastmks πŸ’œ this page came to you from the mlpack-4.8.0 girlies, dated 22 June 2026 β€” slay, bye bestie βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from