Scroll to navigation

mlpack_fastmks(1) User Commands mlpack_fastmks(1)

NAME

mlpack_fastmks - fastmks (fast max-kernel search)

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

This program will find the k maximum kernels of a set of points, using a query set and a reference set (which can optionally be the same set). More specifically, for each point in the query set, the k points in the reference set with maximum kernel evaluations are found. The kernel function used is specified with the '--kernel (-K)' parameter.

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.

$ 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.

This program performs FastMKS using a cover tree. The base used to build the cover tree can be specified with the '--base (-b)' parameter.

OPTIONAL INPUT OPTIONS

Bandwidth (for Gaussian, Epanechnikov, and triangular kernels). Default value 1.
Base to use during cover tree construction. Default value 2.
Degree of polynomial kernel. Default value 2.
Default help info.
Print help on a specific option. Default value ''.
Input FastMKS model to use.
Number of maximum kernels to find. Default value 0.
Kernel type to use: 'linear', 'polynomial', 'cosine', 'gaussian', 'epanechnikov', 'triangular', 'hyptan'. Default value 'linear'.
If true, O(n^2) naive mode is used for computation.
Offset of kernel (for polynomial and hyptan kernels). Default value 0.
The query dataset.
The reference dataset.
Scale of kernel (for hyptan kernel). Default value 1.
If true, single-tree search is used (as opposed to dual-tree search.
Display informational messages and the full list of parameters and timers at the end of execution.
Display the version of mlpack.

OPTIONAL OUTPUT OPTIONS

Output matrix of indices.
Output matrix of kernels.
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.

28 November 2023 mlpack-4.3.0