mlpack
|
Linear algebra utility functions, generally performed on matrices or vectors. More...
Namespaces | |
amf | |
Alternating Matrix Factorization. | |
ann | |
Artificial Neural Network. | |
cf | |
Collaborative filtering. | |
data | |
Functions to load and save matrices and models. | |
det | |
Density Estimation Trees. | |
distribution | |
Probability distributions. | |
emst | |
Euclidean Minimum Spanning Trees. | |
fastmks | |
Fast max-kernel search. | |
gmm | |
Gaussian Mixture Models. | |
hmm | |
Hidden Markov Models. | |
kde | |
Kernel Density Estimation. | |
kernel | |
Kernel functions. | |
kmeans | |
K-Means clustering. | |
lmnn | |
Large Margin Nearest Neighbor. | |
math | |
Miscellaneous math routines. | |
matrix_utils | |
meanshift | |
Mean shift clustering. | |
naive_bayes | |
The Naive Bayes Classifier. | |
nca | |
Neighborhood Components Analysis. | |
preprocess_json_params | |
range | |
Range-search routines. | |
regression | |
Regression methods. | |
tree | |
Trees and tree-building procedures. | |
Classes | |
class | Backtrace |
Provides a backtrace. More... | |
class | IO |
Parses the command line for parameters and holds user-specified parameters. More... | |
class | Log |
Provides a convenient way to give formatted output. More... | |
class | Timer |
The timer class provides a way for mlpack methods to be timed. More... | |
class | Timers |
Functions | |
template<typename T > | |
T::elem_type * | GetMemory (T &m) |
Return the matrix's allocated memory pointer, unless the matrix is using its internal preallocated memory, in which case we copy that and return a pointer to the memory we just made. | |
void | mlpackSetParamDouble (const char *identifier, double value) |
Set the double parameter to the given value. | |
void | mlpackSetParamInt (const char *identifier, int value) |
Set the int parameter to the given value. | |
void | mlpackSetParamFloat (const char *identifier, float value) |
Set the float parameter to the given value. | |
void | mlpackSetParamBool (const char *identifier, bool value) |
Set the bool parameter to the given value. | |
void | mlpackSetParamString (const char *identifier, const char *value) |
Set the string parameter to the given value. | |
void | mlpackSetParamVectorInt (const char *identifier, const long long *ints, const size_t length) |
Set the int vector parameter to the given value. | |
void | mlpackSetParamVectorStrLen (const char *identifier, const size_t length) |
Call IO::SetParam<std::vector<std::string>>() to set the length. | |
void | mlpackSetParamVectorStr (const char *identifier, const char *str, const size_t element) |
Set the string vector parameter to the given value. | |
void | mlpackSetParamPtr (const char *identifier, const double *ptr) |
Set the parameter to the given value, given that the type is a pointer. | |
bool | mlpackHasParam (const char *identifier) |
Check if IO has a specified parameter. | |
const char * | mlpackGetParamString (const char *identifier) |
Get the string parameter associated with specified identifier. | |
double | mlpackGetParamDouble (const char *identifier) |
Get the double parameter associated with specified identifier. | |
int | mlpackGetParamInt (const char *identifier) |
Get the int parameter associated with specified identifier. | |
bool | mlpackGetParamBool (const char *identifier) |
Get the bool parameter associated with specified identifier. | |
void * | mlpackGetVecIntPtr (const char *identifier) |
Get the vector<int> parameter associated with specified identifier. | |
const char * | mlpackGetVecStringPtr (const char *identifier, const size_t i) |
Get the vector<string> parameter associated with specified identifier. | |
int | mlpackVecIntSize (const char *identifier) |
Get the vector<int> parameter's size. | |
int | mlpackVecStringSize (const char *identifier) |
Get the vector<string> parameter's size. | |
void | mlpackSetPassed (const char *name) |
Set parameter as passed. | |
void | mlpackResetTimers () |
Reset the status of all timers. | |
void | mlpackEnableTimers () |
Enable timing. | |
void | mlpackDisableBacktrace () |
Disable backtraces. | |
void | mlpackEnableVerbose () |
Turn verbose output on. | |
void | mlpackDisableVerbose () |
Turn verbose output off. | |
void | mlpackClearSettings () |
Clear settings. | |
void | mlpackRestoreSettings (const char *name) |
Restore Settings. | |
void | CheckMatrices (const arma::mat &x, const arma::mat &xmlX, const arma::mat &jsonX, const arma::mat &binaryX) |
void | CheckMatrices (const arma::Mat< size_t > &x, const arma::Mat< size_t > &xmlX, const arma::Mat< size_t > &jsonX, const arma::Mat< size_t > &binaryX) |
void | CheckMatrices (const arma::cube &x, const arma::cube &xmlX, const arma::cube &jsonX, const arma::cube &binaryX) |
template<typename CubeType , typename IArchiveType , typename OArchiveType > | |
void | TestArmadilloSerialization (arma::Cube< CubeType > &x) |
template<typename CubeType > | |
void | TestAllArmadilloSerialization (arma::Cube< CubeType > &x) |
template<typename MatType , typename IArchiveType , typename OArchiveType > | |
void | TestArmadilloSerialization (MatType &x) |
template<typename MatType > | |
void | TestAllArmadilloSerialization (MatType &x) |
template<typename T , typename IArchiveType , typename OArchiveType > | |
void | SerializeObject (T &t, T &newT) |
template<typename T > | |
void | SerializeObjectAll (T &t, T &xmlT, T &jsonT, T &binaryT) |
template<typename T , typename IArchiveType , typename OArchiveType > | |
void | SerializePointerObject (T *t, T *&newT) |
template<typename T > | |
void | SerializePointerObjectAll (T *t, T *&xmlT, T *&jsonT, T *&binaryT) |
Linear algebra utility functions, generally performed on matrices or vectors.
This class is used to update the weightVectors matrix according to the simple update rule as discussed by Rosenblatt:
In case it hasn't been included yet.
This is an autogenerated file that allows convenient imports of mlpack functionality. mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.
if a vector x has been incorrectly classified by a weight w, then w = w - x and w'= w'+ x
where w' is the weight vector which correctly classifies x.