Man page - mlpack_local_coordinate_coding(1)
Packages contains this manual
- mlpack_fastmks(1)
- mlpack_mean_shift(1)
- mlpack_hmm_generate(1)
- mlpack_local_coordinate_coding(1)
- mlpack_sparse_coding(1)
- mlpack_preprocess_scale(1)
- mlpack_kmeans(1)
- mlpack_linear_svm(1)
- mlpack_preprocess_split(1)
- mlpack_softmax_regression(1)
- mlpack_hmm_train(1)
- mlpack_nca(1)
- mlpack_range_search(1)
- mlpack_radical(1)
- mlpack_gmm_generate(1)
- mlpack_cf(1)
- mlpack_random_forest(1)
- mlpack_lmnn(1)
- mlpack_gmm_probability(1)
- mlpack_emst(1)
- mlpack_dbscan(1)
- mlpack_nbc(1)
- mlpack_preprocess_one_hot_encoding(1)
- mlpack_lsh(1)
- mlpack_knn(1)
- mlpack_kde(1)
- mlpack_hoeffding_tree(1)
- mlpack_adaboost(1)
- mlpack_hmm_loglik(1)
- mlpack_nmf(1)
- mlpack_pca(1)
- mlpack_bayesian_linear_regression(1)
- mlpack_hmm_viterbi(1)
- mlpack_preprocess_describe(1)
- mlpack_decision_tree(1)
- mlpack_krann(1)
- mlpack_det(1)
- mlpack_lars(1)
- mlpack_preprocess_binarize(1)
- mlpack_logistic_regression(1)
- mlpack_gmm_train(1)
- mlpack_perceptron(1)
- mlpack_preprocess_imputer(1)
- mlpack_kernel_pca(1)
- mlpack_kfn(1)
- mlpack_linear_regression(1)
- mlpack_approx_kfn(1)
apt-get install mlpack-bin
Manual
mlpack_local_coordinate_coding
NAMESYNOPSIS
DESCRIPTION
OPTIONAL INPUT OPTIONS
OPTIONAL OUTPUT OPTIONS
ADDITIONAL INFORMATION
NAME
mlpack_local_coordinate_coding - local coordinate coding
SYNOPSIS
mlpack_local_coordinate_coding [ -k int ] [ -i unknown ] [ -m unknown ] [ -l double ] [ -n int ] [ -N bool ] [ -s int ] [ -T unknown ] [ -o double ] [ -t unknown ] [ -V bool ] [ -c unknown ] [ -d unknown ] [ -M unknown ] [ -h -v ]
DESCRIPTION
An implementation of Local Coordinate Coding (LCC), which codes data that approximately lives on a manifold using a variation of l1-norm regularized sparse coding. Given a dense data matrix X with n points and d dimensions, LCC seeks to find a dense dictionary matrix D with k atoms in d dimensions, and a coding matrix Z with n points in k dimensions. Because of the regularization method used, the atoms in D should lie close to the manifold on which the data points lie.
The original data matrix X can then be reconstructed as D * Z. Therefore, this program finds a representation of each point in X as a sparse linear combination of atoms in the dictionary D.
The coding is found with an algorithm which alternates between a dictionary step, which updates the dictionary D, and a coding step, which updates the coding matrix Z.
To run this program, the input matrix X must be specified (with -i ), along with the number of atoms in the dictionary ( -k ). An initial dictionary may also be specified with the β --initial_dictionary_file ( -i )β parameter. The l1-norm regularization parameter is specified with the β --lambda ( -l )β parameter.
For example, to run LCC on the dataset βdata.csvβ using 200 atoms and an l1-regularization parameter of 0.1, saving the dictionary β --dictionary_file ( -d )β and the codes into β --codes_file ( -c )β, use
$ mlpack_local_coordinate_coding --training_file data.csv --atoms 200 --lambda 0.1 --dictionary_file dict.csv --codes_file codes.csv
The maximum number of iterations may be specified with the β --max_iterations ( -n )β parameter. Optionally, the input data matrix X can be normalized before coding with the β --normalize ( -N )β parameter.
An LCC model may be saved using the β --output_model_file ( -M )β output parameter. Then, to encode new points from the dataset βpoints.csvβ with the previously saved model βlcc_model.binβ, saving the new codes to βnew_codes.csvβ, the following command can be used:
$ mlpack_local_coordinate_coding --input_model_file lcc_model.bin --test_file points.csv --codes_file new_codes.csv
OPTIONAL INPUT OPTIONS
--atoms (-k) [ int ]
Number of atoms in the dictionary. Default value 0.
--help (-h) [ bool ]
Default help info.
--info [string]
Print help on a specific option. Default value ββ.
--initial_dictionary_file (-i) [ unknown ]
Optional initial dictionary.
--input_model_file (-m) [ unknown ]
Input LCC model.
--lambda (-l) [ double ]
Weighted l1-norm regularization parameter. Default value 0.
--max_iterations (-n) [ int ]
Maximum number of iterations for LCC (0 indicates no limit). Default value 0.
--normalize (-N) [ bool ]
If set, the input data matrix will be normalized before coding.
--seed (-s) [ int ]
Random seed. If 0, βstd::time(NULL)β is used. Default value 0.
--test_file (-T) [ unknown ]
Test points to encode.
--tolerance (-o) [ double ]
Tolerance for objective function. Default value 0.01.
--training_file (-t) [ unknown ]
Matrix of training data (X).
--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
--codes_file (-c) [ unknown ]
Output codes matrix.
--dictionary_file (-d) [ unknown ]
Output dictionary matrix.
--output_model_file (-M) [ unknown ]
Output for trained LCC 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.