EnglishFrenchSpanish

Ad


OnWorks favicon

mlpack_allknn - Online in the Cloud

Run mlpack_allknn in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mlpack_allknn that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


mlpack_allknn - k-nearest-neighbors

SYNOPSIS


mlpack_allknn [-h] [-v] [-d string] [-m string] [-k int] [-l int] [-N] [-n string] [-M string] [-q string] [-R] [-r string] [-s int] [-S] [-t string] -V

DESCRIPTION


This program will calculate the k-nearest-neighbors of a set of points using kd-trees or
cover trees (cover tree support is experimental and may be slow). You may specify a
separate set of reference points and query points, or just a reference set which will be
used as both the reference and query set.

For example, the following will calculate the 5 nearest neighbors of eachpoint in
'input.csv' and store the distances in 'distances.csv' and the neighbors in the file
'neighbors.csv':

$ allknn --k=5 --reference_file=input.csv --distances_file=distances.csv
--neighbors_file=neighbors.csv

The output files are organized such that row i and column j in the neighbors output file
corresponds to the index of the point in the reference set which is the i'th nearest
neighbor from the point in the query set with index j. Row i and column j in the
distances output file corresponds to the distance between those two points.

OPTIONS


--distances_file (-d) [string] File to output distances into. Default value ’'.

--help (-h)
Default help info.

--info [string]
Get help on a specific module or option. Default value ''. --input_model_file
(-m) [string] File containing pre-trained kNN model. Default value ''.

--k (-k) [int]
Number of nearest neighbors to find. Default value 0.

--leaf_size (-l) [int]
Leaf size for tree building (used for kd-trees, R trees, and R* trees). Default
value 20.

--naive (-N)
If true, O(n^2) naive mode is used for computation. --neighbors_file (-n) [string]
File to output neighbors into. Default value ’'. --output_model_file (-M) [string]
If specified, the kNN model will be saved to the given file. Default value ''.

--query_file (-q) [string]
File containing query points (optional). Default value ''.

--random_basis (-R)
Before tree-building, project the data onto a random orthogonal basis.
--reference_file (-r) [string] File containing the reference dataset. Default value
''.

--seed (-s) [int]
Random seed (if 0, std::time(NULL) is used). Default value 0.

--single_mode (-S)
If true, single-tree search is used (as opposed to dual-tree search).

--tree_type (-t) [string]
Type of tree to use: 'kd', 'cover', 'r', ’r-star', 'ball'. Default value 'kd'.

--verbose (-v)
Display informational messages and the full list of parameters and timers at the
end of execution.

--version (-V)
Display the version of mlpack.

ADDITIONAL INFORMATION


ADDITIONAL INFORMATION


For further information, including relevant papers, citations, and theory, For further
information, including relevant papers, citations, and theory, consult the documentation
found at http://www.mlpack.org or included with your consult the documentation found at
http://www.mlpack.org or included with your DISTRIBUTION OF MLPACK. DISTRIBUTION OF
MLPACK.

mlpack_allknn(1)

Use mlpack_allknn online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    authpass
    authpass
    AuthPass is an open source password
    manager with support for the popular and
    proven Keepass (kdbx 3.x AND kdbx 4.x ...
    Download authpass
  • 2
    Zabbix
    Zabbix
    Zabbix is an enterprise-class open
    source distributed monitoring solution
    designed to monitor and track
    performance and availability of network
    servers, device...
    Download Zabbix
  • 3
    KDiff3
    KDiff3
    This repository is no longer maintained
    and is kept for archival purposes. See
    https://invent.kde.org/sdk/kdiff3 for
    the newest code and
    https://download.kde.o...
    Download KDiff3
  • 4
    USBLoaderGX
    USBLoaderGX
    USBLoaderGX is a GUI for
    Waninkoko's USB Loader, based on
    libwiigui. It allows listing and
    launching Wii games, Gamecube games and
    homebrew on Wii and WiiU...
    Download USBLoaderGX
  • 5
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 6
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 7
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • More »

Linux commands

Ad