14 #ifndef __MLPACK_METHODS_NCA_NCA_HPP
15 #define __MLPACK_METHODS_NCA_NCA_HPP
68 const arma::Row<size_t>&
labels,
69 MetricType
metric = MetricType());
88 const OptimizerType<SoftmaxErrorFunction<MetricType> >&
Optimizer()
const
90 OptimizerType<SoftmaxErrorFunction<MetricType> >&
Optimizer()
106 OptimizerType<SoftmaxErrorFunction<MetricType> >
optimizer;
113 #include "nca_impl.hpp"
SoftmaxErrorFunction< MetricType > errorFunction
The function to optimize.
MetricType metric
Metric to be used.
const arma::mat & dataset
Dataset reference.
The "softmax" stochastic neighbor assignment probability function.
OptimizerType< SoftmaxErrorFunction< MetricType > > optimizer
The optimizer to use.
Linear algebra utility functions, generally performed on matrices or vectors.
LMetric< 2, false > SquaredEuclideanDistance
The squared Euclidean (L2) distance.
const OptimizerType< SoftmaxErrorFunction< MetricType > > & Optimizer() const
Get the optimizer.
NCA(const arma::mat &dataset, const arma::Row< size_t > &labels, MetricType metric=MetricType())
Construct the Neighborhood Components Analysis object.
const arma::Row< size_t > & Labels() const
Get the labels reference.
const arma::mat & Dataset() const
Get the dataset reference.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
const arma::Row< size_t > & labels
Labels reference.
Stochastic Gradient Descent is a technique for minimizing a function which can be expressed as a sum ...
An implementation of Neighborhood Components Analysis, both a linear dimensionality reduction techniq...
void LearnDistance(arma::mat &outputMatrix)
Perform Neighborhood Components Analysis.
OptimizerType< SoftmaxErrorFunction< MetricType > > & Optimizer()